Skip to contentSkip to conversation

char: misc: Fix coding style issues

PATCH In review Shyam Sunder Reddy Padira 2 participants 2 messages Apr 10 – May 22 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 char: misc: Fix coding style issues

Remove redundant filename from comment block and drop unnecessary braces for single statement block, as reported by changepatch.pl

No functional changes

---
 drivers/char/misc.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/char/misc.c +1 -3
index 726516fb0a3b..8edce479223b 100644
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 /*
- * linux/drivers/char/misc.c
  *
  * Generic misc open routine by Johan Myreen
  *
@@ -255,9 +254,8 @@ int misc_register(struct miscdevice *misc)
 					  misc, misc->groups, "%s", misc->name);
 	if (IS_ERR(misc->this_device)) {
 		misc_minor_free(misc->minor);
-		if (is_dynamic) {
+		if (is_dynamic)
 			misc->minor = MISC_DYNAMIC_MINOR;
-		}
 		err = PTR_ERR(misc->this_device);
 		goto out;
 	}
Signature · 1 line
2.43.0
maintainer
#1 lore raw
Quoted 3 lines · Shyam Sunder Reddy Padira

Remove redundant filename from comment block and drop unnecessary braces for single statement block, as reported by changepatch.pl

There is no such tool :(