From: Shyam Sunder Reddy Padira <shyamsunderreddypadira@gmail.com>
To: linux-kernel@vger.kernel.org, arnd@arndb.de, gregkh@linuxfoundation.org
Cc: Shyam Sunder Reddy Padira <shyamsunderreddypadira@gmail.com>
Subject: [PATCH] char: misc: Fix coding style issues
Date: Sat, 11 Apr 2026 03:30:46 +0530 [thread overview]
Message-ID: <20260410220131.3075-1-shyamsunderreddypadira@gmail.com> (raw)
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
next reply other threads:[~2026-04-10 22:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-10 22:00 Shyam Sunder Reddy Padira [this message]
2026-05-22 10:42 ` Greg KH
-- strict thread matches above, loose matches on Subject: below --
2014-10-11 18:32 [PATCH] char: misc: fix " Rahul Bedarkar
2014-10-11 18:27 Rahul Bedarkar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260410220131.3075-1-shyamsunderreddypadira@gmail.com \
--to=shyamsunderreddypadira@gmail.com \
--cc=arnd@arndb.de \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®