Skip to contentSkip to conversation

staging: speakup: keyhelp: Fix 'if' continuation

PATCH In review Tamara Diaconita 1 participant 1 message Mar 6, 2017 Staging

lore
Share & tools
lore
#0 lore raw

PATCH v2 2/2 staging: speakup: keyhelp: Fix 'if' continuation

Fixed the checkpath.pl issue:
CHECK: Logical continuations should be on the previous line.

Removed tabs to make the logical continuation on the same line.
Added spaces to align the code.

---
 drivers/staging/speakup/keyhelp.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
drivers/staging/speakup/keyhelp.c +3 -5
index f5156bb..2ef7370 100644
@@ -163,17 +163,15 @@ int spk_handle_help(struct vc_data *vc, u_char type, u_char ch, u_short key)
 		}
 		cur_item = letter_offsets[ch - 'a'];
 	} else if (type == KT_CUR) {
-		if (ch == 0
-		    && (MSG_FUNCNAMES_START + cur_item + 1) <=
+		if (ch == 0 && (MSG_FUNCNAMES_START + cur_item + 1) <=
 		    MSG_FUNCNAMES_END)
 			cur_item++;
 		else if (ch == 3 && cur_item > 0)
 			cur_item--;
 		else
 			return -1;
-	} else if (type == KT_SPKUP
-			&& ch == SPEAKUP_HELP
-			&& !spk_special_handler) {
+	} else if (type == KT_SPKUP && ch == SPEAKUP_HELP &&
+		   !spk_special_handler) {
 		spk_special_handler = spk_handle_help;
 		synth_printf("%s\n", spk_msg_get(MSG_HELP_INFO));
 		build_key_data(); /* rebuild each time in case new mapping */
Signature · 1 line
2.9.3