summaryrefslogtreecommitdiffstats
path: root/drivers/char/raw.c
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2015-12-22 00:11:11 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-08 14:57:30 -0800
commit202cdb6f889bf45e1cb4883e1727e9909152b777 (patch)
tree99f46bf6178c281b89ad0c44589cf5554ab8b566 /drivers/char/raw.c
parenta116eaf1be4ed4f91cc85d17b2f000f08d85c2d9 (diff)
downloadop-kernel-dev-202cdb6f889bf45e1cb4883e1727e9909152b777.zip
op-kernel-dev-202cdb6f889bf45e1cb4883e1727e9909152b777.tar.gz
drivers: char: raw: Removed unnecessary braces
Removed braces from single statement if condition.Fixed checkpatch.pl warning. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char/raw.c')
-rw-r--r--drivers/char/raw.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/char/raw.c b/drivers/char/raw.c
index 9b9809b..e83b2ad 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");
OpenPOWER on IntegriCloud