[PATCH] char: misc: Fix coding style issues

Shyam Sunder Reddy Padira posted 1 patch 2 months, 1 week ago
drivers/char/misc.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
[PATCH] char: misc: Fix coding style issues
Posted by Shyam Sunder Reddy Padira 2 months, 1 week ago
Remove redundant filename from comment block and
drop unnecessary braces for single statement block,
as reported by changepatch.pl

No functional changes

Signed-off-by: Shyam Sunder Reddy Padira <shyamsunderreddypadira@gmail.com>
---
 drivers/char/misc.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/char/misc.c b/drivers/char/misc.c
index 726516fb0a3b..8edce479223b 100644
--- a/drivers/char/misc.c
+++ b/drivers/char/misc.c
@@ -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;
 	}
-- 
2.43.0
Re: [PATCH] char: misc: Fix coding style issues
Posted by Greg KH 4 weeks, 1 day ago
On Sat, Apr 11, 2026 at 03:30:46AM +0530, Shyam Sunder Reddy Padira wrote:
> Remove redundant filename from comment block and
> drop unnecessary braces for single statement block,
> as reported by changepatch.pl

There is no such tool :(