Skip to content

Commit

Permalink
drivers: char: raw: Removed unnecessary braces
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bhumika Goyal authored and Greg Kroah-Hartman committed Feb 8, 2016
1 parent a116eaf commit 202cdb6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/char/raw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 202cdb6

Please sign in to comment.