From: deaner92@yahoo.com
Cc: mhiramat@kernel.org, akpm@linux-foundation.org, mingo@kernel.org,
ytcoode@gmail.com, mcgrof@kernel.org, tj@kernel.org,
tglx@linutronix.de, pmladek@suse.com,
christophe.leroy@csgroup.eu, linux@ramusvillemoes.dk,
shijie@os.amperecomputing.com, geert+renesas@glider.be,
rrangel@chromium.org, linux-kernel@vger.kernel.org,
deaner92@yahoo.com
Subject: [PATCH] init: Unnecessary braces around single line statment.
Date: Sat, 25 Jan 2025 16:41:28 +0100 [thread overview]
Message-ID: <20250125154139.7565-1-deaner92@yahoo.com> (raw)
In-Reply-To: <20250125154139.7565-1-deaner92.ref@yahoo.com>
From: Jeremy Clifton <deaner92@yahoo.com>
Warning found with checkpatch.pl script. Removed unnecessary braces.
Signed-off-by: Jeremy Clifton <deaner92@yahoo.com>
---
init/main.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/init/main.c b/init/main.c
index 00fac1170294..64034fce4c9e 100644
--- a/init/main.c
+++ b/init/main.c
@@ -398,9 +398,8 @@ static char * __init xbc_make_cmdline(const char *key)
static int __init bootconfig_params(char *param, char *val,
const char *unused, void *arg)
{
- if (strcmp(param, "bootconfig") == 0) {
+ if (strcmp(param, "bootconfig") == 0)
bootconfig_found = true;
- }
return 0;
}
--
2.43.0
next parent reply other threads:[~2025-01-25 15:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20250125154139.7565-1-deaner92.ref@yahoo.com>
2025-01-25 15:41 ` deaner92 [this message]
2025-01-26 14:23 ` Markus Elfring
[not found] ` <Z5iHRSUPEQoI2Rfl@vmi2410184.contaboserver.net>
2025-01-28 7:42 ` Markus Elfring
[not found] ` <5033d386-0765-486d-bf5a-68fe790ee455@csgroup.eu>
2025-01-28 8:45 ` init: Unnecessary braces around single line statement Markus Elfring
2025-01-28 8:59 ` Christophe Leroy
2025-01-28 9:24 ` Petr Mladek
2025-01-28 13:34 ` Markus Elfring
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=20250125154139.7565-1-deaner92@yahoo.com \
--to=deaner92@yahoo.com \
--cc=akpm@linux-foundation.org \
--cc=christophe.leroy@csgroup.eu \
--cc=geert+renesas@glider.be \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@ramusvillemoes.dk \
--cc=mcgrof@kernel.org \
--cc=mhiramat@kernel.org \
--cc=mingo@kernel.org \
--cc=pmladek@suse.com \
--cc=rrangel@chromium.org \
--cc=shijie@os.amperecomputing.com \
--cc=tglx@linutronix.de \
--cc=tj@kernel.org \
--cc=ytcoode@gmail.com \
/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®