From nobody Sun Feb 8 03:57:17 2026 Received: from mail.nfschina.com (unknown [42.101.60.195]) by smtp.subspace.kernel.org (Postfix) with SMTP id 0F060482D0; Tue, 20 Feb 2024 05:18:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=42.101.60.195 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708406347; cv=none; b=OmgTYeYRsM1e6Jj7khyqF3hR/mN95VwppG6RmY2FmIqDgcoXMLBZljEbpgkiGU9hurwrv6ipb4dD6BhdvXl3RtylKelmghrBo7v5CdEtvOTjpd2p3J5EFusGvUq/Q9OKWkpTZ6Cu1GzhVTn5zqpooAwL2hteph5t7O8tLEA3aU8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708406347; c=relaxed/simple; bh=WW6nBO6M2oCGgiocdFG4e1PF8PO+zS+gCZmKFpHIpp8=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=SyW6wyixAF3KZRDpUYrJPyus1bECDYjWhxnrHDBuFBT7h25zWYdUf4ie0TJGiNhH8Wyw9g2utMoiNxqKlcPkvpS2uz+8uHPtFDHdatKhCN65d6Hzj9ApHyjpAJ1ISMRLVk6gkUVQsVd6WF0DHlRHU3Cdy0w9tw/5fAwGah6p1Jw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nfschina.com; spf=pass smtp.mailfrom=nfschina.com; arc=none smtp.client-ip=42.101.60.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nfschina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nfschina.com Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id BD124602610CC; Tue, 20 Feb 2024 13:18:37 +0800 (CST) X-MD-Sfrom: zeming@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li zeming To: viro@zeniv.linux.org.uk, brauner@kernel.org, ebiederm@xmission.com, keescook@chromium.org Cc: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] =?UTF-8?q?exec:=20Remove=20unnecessary=20=E2=80=98NULL?= =?UTF-8?q?=E2=80=99=20values=20from=20vma?= Date: Tue, 20 Feb 2024 13:18:30 +0800 Message-Id: <20240220051830.61099-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" vma is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li zeming --- fs/exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/exec.c b/fs/exec.c index af4fbb61cd53e..7be0527f5ff25 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -254,7 +254,7 @@ static void flush_arg_page(struct linux_binprm *bprm, u= nsigned long pos, static int __bprm_mm_init(struct linux_binprm *bprm) { int err; - struct vm_area_struct *vma =3D NULL; + struct vm_area_struct *vma; struct mm_struct *mm =3D bprm->mm; =20 bprm->vma =3D vma =3D vm_area_alloc(mm); --=20 2.18.2