[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20231205015139.99501-1-kunyu@nfschina.com>
Date: Tue, 5 Dec 2023 09:51:39 +0800
From: Li kunyu <kunyu@...china.com>
To: viro@...iv.linux.org.uk, brauner@...nel.org, ebiederm@...ssion.com,
keescook@...omium.org
Cc: linux-fsdevel@...r.kernel.org, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, Li kunyu <kunyu@...china.com>
Subject: [PATCH] fs: exec: Remove unnecessary ‘NULL’ values from vma
vma is assigned first, so it does not need to initialize the assignment.
Signed-off-by: Li kunyu <kunyu@...china.com>
---
fs/exec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/exec.c b/fs/exec.c
index b01d2d40ace03..cae37330e7442 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -253,7 +253,7 @@ static void flush_arg_page(struct linux_binprm *bprm, unsigned long pos,
static int __bprm_mm_init(struct linux_binprm *bprm)
{
int err;
- struct vm_area_struct *vma = NULL;
+ struct vm_area_struct *vma;
struct mm_struct *mm = bprm->mm;
bprm->vma = vma = vm_area_alloc(mm);
--
2.18.2
Powered by blists - more mailing lists