+ usr-remove-unnecessary-1-values-from-int-file.patch added to mm-nonmm-unstable branch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: usr/gen_init_cpio.c: remove unnecessary -1 values from int file
has been added to the -mm mm-nonmm-unstable branch.  Its filename is
     usr-remove-unnecessary-1-values-from-int-file.patch

This patch will shortly appear at
     https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/usr-remove-unnecessary-1-values-from-int-file.patch

This patch will later appear in the mm-nonmm-unstable branch at
    git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days

------------------------------------------------------
From: Li zeming <zeming@xxxxxxxxxxxx>
Subject: usr/gen_init_cpio.c: remove unnecessary -1 values from int file
Date: Mon, 19 Sep 2022 09:44:06 +0800

The file variable is assigned first, it does not need to be initialized.

Link: https://lkml.kernel.org/r/20220919014406.3242-1-zeming@xxxxxxxxxxxx
Signed-off-by: Li zeming <zeming@xxxxxxxxxxxx>
Cc: Li zeming <zeming@xxxxxxxxxxxx>
Cc: Masahiro Yamada <masahiroy@xxxxxxxxxx>
Cc: Nicolas Schier <nicolas@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---


--- a/usr/gen_init_cpio.c~usr-remove-unnecessary-1-values-from-int-file
+++ a/usr/gen_init_cpio.c
@@ -326,7 +326,7 @@ static int cpio_mkfile(const char *name,
 	char s[256];
 	struct stat buf;
 	unsigned long size;
-	int file = -1;
+	int file;
 	int retval;
 	int rc = -1;
 	int namesize;
_

Patches currently in -mm which might be from zeming@xxxxxxxxxxxx are

mm-remove-unnecessary-0-values-from-err.patch
usr-remove-unnecessary-1-values-from-int-file.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux