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

staging: speakup: Moved logical to previous line.

Moved logical operator to previous line to fix the following
checkpatch issue:

CHECK: Logical continuations should be on the previous line.

Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Arushi Singhal and committed by
Greg Kroah-Hartman
049aa515 ad5a942f

+6 -6
+6 -6
drivers/staging/speakup/main.c
··· 902 902 while (start < end) { 903 903 sentbuf[bn][i] = get_char(vc, (u_short *)start, &tmp); 904 904 if (i > 0) { 905 - if (sentbuf[bn][i] == SPACE && sentbuf[bn][i - 1] == '.' 906 - && numsentences[bn] < 9) { 905 + if (sentbuf[bn][i] == SPACE && sentbuf[bn][i - 1] == '.' && 906 + numsentences[bn] < 9) { 907 907 /* Sentence Marker */ 908 908 numsentences[bn]++; 909 909 sentmarks[bn][numsentences[bn]] = ··· 1300 1300 1301 1301 /* First, free any non-default */ 1302 1302 for (i = 0; i < 256; i++) { 1303 - if ((spk_characters[i] != NULL) 1304 - && (spk_characters[i] != spk_default_chars[i])) 1303 + if (spk_characters[i] && 1304 + (spk_characters[i] != spk_default_chars[i])) 1305 1305 kfree(spk_characters[i]); 1306 1306 } 1307 1307 ··· 2096 2096 tty = vc->port.tty; 2097 2097 if (type >= 0xf0) 2098 2098 type -= 0xf0; 2099 - if (type == KT_PAD 2100 - && (vt_get_leds(fg_console, VC_NUMLOCK))) { 2099 + if (type == KT_PAD && 2100 + (vt_get_leds(fg_console, VC_NUMLOCK))) { 2101 2101 if (up_flag) { 2102 2102 spk_keydown = 0; 2103 2103 goto out;