Commit 462cd772 authored by Li zeming's avatar Li zeming Committed by Andrew Morton

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.comSigned-off-by: default avatarLi 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: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 72d1e611
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment