projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a116eaf
)
drivers: char: raw: Removed unnecessary braces
author
Bhumika Goyal
<bhumirks@gmail.com>
Mon, 21 Dec 2015 18:41:11 +0000
(
00:11
+0530)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 22:57:30 +0000
(14:57 -0800)
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>
drivers/char/raw.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/raw.c
b/drivers/char/raw.c
index 9b9809b709a55f19f8fc2e5187a26eb47df7f807..e83b2adc014ad92c374a1e136a158612d3fd1883 100644
(file)
--- 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");