Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1296149 > unrolled thread

[PATCH v2] drivers:char:Removed unnecessary braces

Started byBhumika Goyal <bhumirks@gmail.com>
First post2015-12-21 19:50 +0100
Last post2015-12-21 19:50 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH v2] drivers:char:Removed unnecessary  braces Bhumika Goyal <bhumirks@gmail.com> - 2015-12-21 19:50 +0100

#1296149 — [PATCH v2] drivers:char:Removed unnecessary braces

FromBhumika Goyal <bhumirks@gmail.com>
Date2015-12-21 19:50 +0100
Subject[PATCH v2] drivers:char:Removed unnecessary braces
Message-ID<qIdGW-1Gc-19@gated-at.bofh.it>
Removed braces from single statement if condition.Fixed checkpatch.pl
warning.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
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(-)

diff --git a/drivers/char/raw.c b/drivers/char/raw.c
index 60316fb..c8bf17b 100644
--- a/drivers/char/raw.c
+++ b/drivers/char/raw.c
@@ -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");
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web