@@ -71,9 +71,7 @@ static bool sysrq_on(void)
*/
int sysrq_mask(void)
{
- if (sysrq_always_enabled)
- return 1;
- return sysrq_enabled;
+ return sysrq_always_enabled ? 1 : sysrq_enabled;
}
EXPORT_SYMBOL_GPL(sysrq_mask);
@@ -454,7 +452,7 @@ static void sysrq_handle_replay_logs(u8 key)
{
console_try_replay_all();
}
-static struct sysrq_key_op sysrq_replay_logs_op = {
+static const struct sysrq_key_op sysrq_replay_logs_op = {
.handler = sysrq_handle_replay_logs,
.help_msg = "replay-kernel-logs(R)",
.action_msg = "Replay kernel logs on consoles",