Skip to contentSkip to conversation

usr: Remove unnecessary '-1' values from file

PATCH New Li zeming 1 participant 1 message Sep 7, 2022 Kbuild

lore
Share & tools
lore

Li zeming

author
#0 lore raw

PATCH 1/1 usr: Remove unnecessary '-1' values from file

First execute the open function and assign a value to file.

---
 usr/gen_init_cpio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
usr/gen_init_cpio.c +1 -1
index dc838e26a5b9..ee01e40e8bc6 100644
@@ -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;
Signature · 1 line
2.18.2