[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20240220053225.63316-1-kunyu@nfschina.com>
Date: Tue, 20 Feb 2024 13:32:25 +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] exec: Remove unnecessary ‘NULL’ values from mm
mm 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 10309a93d9c52..64046203bd5ea 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -369,7 +369,7 @@ static bool valid_arg_len(struct linux_binprm *bprm, long len)
static int bprm_mm_init(struct linux_binprm *bprm)
{
int err;
- struct mm_struct *mm = NULL;
+ struct mm_struct *mm;
bprm->mm = mm = mm_alloc();
err = -ENOMEM;
--
2.18.2
Powered by blists - more mailing lists