[PATCH] staging: speakup: (coding style) use braces {} on all arms of if-statement

Christian Colic colic.christian at gmail.com
Thu Nov 19 12:13:50 UTC 2015


linux-kernel at vger.kernel.org
Bcc: 
Subject: [PATCH] staging: speakup: (coding style) use braces {} on all arms
 of if-statement
Reply-To: 

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 at gmail.com>
---
 drivers/staging/speakup/devsynth.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/speakup/devsynth.c b/drivers/staging/speakup/devsynth.c
index d1ffdf4..8498971 100644
--- a/drivers/staging/speakup/devsynth.c
+++ b/drivers/staging/speakup/devsynth.c
@@ -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;
-- 
2.5.0



More information about the devel mailing list