[PATCH] init: Unnecessary braces around single line statment.

deaner92@yahoo.com posted 1 patch 1 year ago
init/main.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
[PATCH] init: Unnecessary braces around single line statment.
Posted by deaner92@yahoo.com 1 year ago
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
Re: [PATCH] init: Unnecessary braces around single line statment.
Posted by Markus Elfring 1 year ago
> Warning found with checkpatch.pl script. Removed unnecessary braces.

1. An imperative wording can be more desirable for an improved change description.
   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.13#n94

2. Please avoid a typo in the summary phrase.

3. It is probably helpful to specify selected email addresses also in the message field “To”.


Regards,
Markus