staging: speakup: (coding style) Add braces around all arms of if-statement
authorChristian Colic <colic.christian@gmail.com>
Thu, 19 Nov 2015 16:08:06 +0000 (17:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Jan 2016 06:40:31 +0000 (22:40 -0800)
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>
drivers/staging/speakup/devsynth.c

index d1ffdf4..8498971 100644 (file)
@@ -76,9 +76,9 @@ void speakup_register_devsynth(void)
        if (misc_registered != 0)
                return;
 /* 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");
-       else {
+       else {
                pr_info("initialized device: /dev/synth, node (MAJOR %d, MINOR %d)\n",
                        MISC_MAJOR, SYNTH_MINOR);
                misc_registered = 1;