Skip to contentSkip to conversation

drivers:char:Removed unnecessary braces

PATCH New Bhumika Goyal 1 participant 1 message Dec 21, 2015 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 drivers:char:Removed unnecessary braces

Removed braces from single statement if condition.Fixed checkpatch.pl warning.

---
Changes in v2:
-Correct the subject and also send to a public mailing list.

---
 drivers/char/raw.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/char/raw.c +1 -3
index 60316fb..c8bf17b 100644
@@ -334,10 +334,8 @@ static int __init raw_init(void)
 
 	cdev_init(&raw_cdev, &raw_fops);
 	ret = cdev_add(&raw_cdev, dev, max_raw_minors);
-	if (ret) {
+	if (ret)
 		goto error_region;
-	}
-
 	raw_class = class_create(THIS_MODULE, "raw");
 	if (IS_ERR(raw_class)) {
 		printk(KERN_ERR "Error creating raw class.\n");
Signature · 1 line
1.9.1