diff mbox series

proc: remove a pointless assignment

Message ID 20200930185359.27526-1-sudipm.mukherjee@gmail.com (mailing list archive)
State New, archived
Headers show
Series proc: remove a pointless assignment | expand

Commit Message

Sudip Mukherjee Sept. 30, 2020, 6:53 p.m. UTC
The variable 'env_start' has only been used for the if condition before
this assignment and is never read after this.
So, remove the assignement.

Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
---
 fs/proc/base.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/fs/proc/base.c b/fs/proc/base.c
index aa69c35d904c..238925ff3a80 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -279,7 +279,7 @@  static ssize_t get_mm_cmdline(struct mm_struct *mm, char __user *buf,
 	 * only when it overflows into the environment area.
 	 */
 	if (env_start != arg_end || env_end < env_start)
-		env_start = env_end = arg_end;
+		env_end = arg_end;
 	len = env_end - arg_start;
 
 	/* We're not going to care if "*ppos" has high bits set */