* [PATCH] usr: Remove unnecessary -1 values from int file
@ 2022-09-19 1:44 Li zeming
2022-09-20 1:55 ` Li zeming
0 siblings, 1 reply; 2+ messages in thread
From: Li zeming @ 2022-09-19 1:44 UTC (permalink / raw)
To: akpm, nicolas, masahiroy; +Cc: linux-kernel, Li zeming
The file variable is assigned first, it does not need to be initialized.
Signed-off-by: Li zeming <zeming@nfschina.com>
---
usr/gen_init_cpio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/usr/gen_init_cpio.c b/usr/gen_init_cpio.c
index dc838e26a5b9..ee01e40e8bc6 100644
--- a/usr/gen_init_cpio.c
+++ b/usr/gen_init_cpio.c
@@ -326,7 +326,7 @@ static int cpio_mkfile(const char *name, const char *location,
char s[256];
struct stat buf;
unsigned long size;
- int file = -1;
+ int file;
int retval;
int rc = -1;
int namesize;
--
2.18.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] usr: Remove unnecessary -1 values from int file
2022-09-19 1:44 [PATCH] usr: Remove unnecessary -1 values from int file Li zeming
@ 2022-09-20 1:55 ` Li zeming
0 siblings, 0 replies; 2+ messages in thread
From: Li zeming @ 2022-09-20 1:55 UTC (permalink / raw)
To: zeming; +Cc: akpm, linux-kernel, masahiroy, nicolas
Thank you so much for including this patch, Mr. Andrew Morton.
This patch had shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/usr-remove-unnecessary-1-values-from-int-file.patch
This patch will later appear in the mm-nonmm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-09-20 1:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-19 1:44 [PATCH] usr: Remove unnecessary -1 values from int file Li zeming
2022-09-20 1:55 ` Li zeming
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.