Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tty/sysrq: Fix issues of code indent should use tabs

Fix issues of code indent should use tabs, reported by checkpatch.pl.

Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Link: https://lore.kernel.org/r/1617779210-51576-3-git-send-email-tanxiaofei@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Xiaofei Tan and committed by
Greg Kroah-Hartman
149ad2c6 2c4a4cde

+17 -17
+17 -17
drivers/tty/sysrq.c
··· 548 548 */ 549 549 static const struct sysrq_key_op *__sysrq_get_key_op(int key) 550 550 { 551 - const struct sysrq_key_op *op_p = NULL; 552 - int i; 551 + const struct sysrq_key_op *op_p = NULL; 552 + int i; 553 553 554 554 i = sysrq_key_table_key2index(key); 555 555 if (i != -1) 556 - op_p = sysrq_key_table[i]; 556 + op_p = sysrq_key_table[i]; 557 557 558 - return op_p; 558 + return op_p; 559 559 } 560 560 561 561 static void __sysrq_put_key_op(int key, const struct sysrq_key_op *op_p) 562 562 { 563 - int i = sysrq_key_table_key2index(key); 563 + int i = sysrq_key_table_key2index(key); 564 564 565 - if (i != -1) 566 - sysrq_key_table[i] = op_p; 565 + if (i != -1) 566 + sysrq_key_table[i] = op_p; 567 567 } 568 568 569 569 void __handle_sysrq(int key, bool check_mask) ··· 587 587 orig_log_level = console_loglevel; 588 588 console_loglevel = CONSOLE_LOGLEVEL_DEFAULT; 589 589 590 - op_p = __sysrq_get_key_op(key); 591 - if (op_p) { 590 + op_p = __sysrq_get_key_op(key); 591 + if (op_p) { 592 592 /* 593 593 * Should we check for enabled operations (/proc/sysrq-trigger 594 594 * should not) and is the invoked operation enabled? ··· 637 637 638 638 /* Simple translation table for the SysRq keys */ 639 639 static const unsigned char sysrq_xlate[KEY_CNT] = 640 - "\000\0331234567890-=\177\t" /* 0x00 - 0x0f */ 641 - "qwertyuiop[]\r\000as" /* 0x10 - 0x1f */ 642 - "dfghjkl;'`\000\\zxcv" /* 0x20 - 0x2f */ 643 - "bnm,./\000*\000 \000\201\202\203\204\205" /* 0x30 - 0x3f */ 644 - "\206\207\210\211\212\000\000789-456+1" /* 0x40 - 0x4f */ 645 - "230\177\000\000\213\214\000\000\000\000\000\000\000\000\000\000" /* 0x50 - 0x5f */ 646 - "\r\000/"; /* 0x60 - 0x6f */ 640 + "\000\0331234567890-=\177\t" /* 0x00 - 0x0f */ 641 + "qwertyuiop[]\r\000as" /* 0x10 - 0x1f */ 642 + "dfghjkl;'`\000\\zxcv" /* 0x20 - 0x2f */ 643 + "bnm,./\000*\000 \000\201\202\203\204\205" /* 0x30 - 0x3f */ 644 + "\206\207\210\211\212\000\000789-456+1" /* 0x40 - 0x4f */ 645 + "230\177\000\000\213\214\000\000\000\000\000\000\000\000\000\000" /* 0x50 - 0x5f */ 646 + "\r\000/"; /* 0x60 - 0x6f */ 647 647 648 648 struct sysrq_state { 649 649 struct input_handle handle; ··· 1108 1108 EXPORT_SYMBOL_GPL(sysrq_toggle_support); 1109 1109 1110 1110 static int __sysrq_swap_key_ops(int key, const struct sysrq_key_op *insert_op_p, 1111 - const struct sysrq_key_op *remove_op_p) 1111 + const struct sysrq_key_op *remove_op_p) 1112 1112 { 1113 1113 int retval; 1114 1114