Przeglądaj źródła

staging: speakup: (coding style) Add braces around all arms of if-statement

Fix checkpatch error: "braces {} should be used on all arms of this statement"
by adding the necessary braces around the "if".

Signed-off-by: Christian Colic <colic.christian@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Christian Colic 9 lat temu
rodzic
commit
1fd16a3125
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      drivers/staging/speakup/devsynth.c

+ 2 - 2
drivers/staging/speakup/devsynth.c

@@ -76,9 +76,9 @@ void speakup_register_devsynth(void)
 	if (misc_registered != 0)
 	if (misc_registered != 0)
 		return;
 		return;
 /* zero it so if register fails, deregister will not ref invalid ptrs */
 /* zero it so if register fails, deregister will not ref invalid ptrs */
-	if (misc_register(&synth_device))
+	if (misc_register(&synth_device)) {
 		pr_warn("Couldn't initialize miscdevice /dev/synth.\n");
 		pr_warn("Couldn't initialize miscdevice /dev/synth.\n");
-	else {
+	} else {
 		pr_info("initialized device: /dev/synth, node (MAJOR %d, MINOR %d)\n",
 		pr_info("initialized device: /dev/synth, node (MAJOR %d, MINOR %d)\n",
 			MISC_MAJOR, SYNTH_MINOR);
 			MISC_MAJOR, SYNTH_MINOR);
 		misc_registered = 1;
 		misc_registered = 1;