Skip to content
/ linux Public
forked from torvalds/linux

Commit

Permalink
usr/gen_init_cpio.c: remove unnecessary -1 values from int file
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Li zeming authored and akpm00 committed Oct 3, 2022
1 parent 72d1e61 commit 462cd77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/gen_init_cpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 462cd77

Please sign in to comment.