aboutsummaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorLi zeming <zeming@nfschina.com>2022-09-19 09:44:06 +0800
committerAndrew Morton <akpm@linux-foundation.org>2022-10-03 14:21:44 -0700
commit462cd7724e2341472c9f9670ac88e250788d4c82 (patch)
tree7a7d9a8fc5d9edc4876745b706bd20b70b3414f2 /usr
parentipc/msg: mitigate the lock contention with percpu counter (diff)
downloadlinux-dev-462cd7724e2341472c9f9670ac88e250788d4c82.tar.xz
linux-dev-462cd7724e2341472c9f9670ac88e250788d4c82.zip
usr/gen_init_cpio.c: remove unnecessary -1 values from int file
The file variable is assigned first, it does not need to be initialized. Link: https://lkml.kernel.org/r/20220919014406.3242-1-zeming@nfschina.com Signed-off-by: Li zeming <zeming@nfschina.com> Cc: Li zeming <zeming@nfschina.com> Cc: Masahiro Yamada <masahiroy@kernel.org> Cc: Nicolas Schier <nicolas@fjasle.eu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'usr')
-rw-r--r--usr/gen_init_cpio.c2
1 files changed, 1 insertions, 1 deletions
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;