From: Bhumika Goyal Date: Mon, 21 Dec 2015 18:41:11 +0000 (+0530) Subject: drivers: char: raw: Removed unnecessary braces X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=202cdb6f889bf45e1cb4883e1727e9909152b777;p=openwrt%2Fstaging%2Fblogic.git drivers: char: raw: Removed unnecessary braces Removed braces from single statement if condition.Fixed checkpatch.pl warning. Signed-off-by: Bhumika Goyal Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/char/raw.c b/drivers/char/raw.c index 9b9809b709a5..e83b2adc014a 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");