Skip to content

Commit 462cd77

Browse files
Li zemingakpm00
authored andcommitted
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/[email protected] Signed-off-by: Li zeming <[email protected]> Cc: Li zeming <[email protected]> Cc: Masahiro Yamada <[email protected]> Cc: Nicolas Schier <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 72d1e61 commit 462cd77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

usr/gen_init_cpio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ static int cpio_mkfile(const char *name, const char *location,
326326
char s[256];
327327
struct stat buf;
328328
unsigned long size;
329-
int file = -1;
329+
int file;
330330
int retval;
331331
int rc = -1;
332332
int namesize;

0 commit comments

Comments
 (0)