]> git.baikalelectronics.ru Git - kernel.git/commit
init/main.c: remove unnecessary repair_env_string in do_initcall_level
authorArvind Sankar <nivedita@alum.mit.edu>
Fri, 31 Jan 2020 06:17:16 +0000 (22:17 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 31 Jan 2020 18:30:41 +0000 (10:30 -0800)
commit2598d3fdc69c7a8c0cc6c8fec77d14d330c7137e
treed051cdb612d14dec6fd20b09f60daa4643891afe
parent5a49e8b3d1f3dadfc481a244d7f11475ec2f2a0b
init/main.c: remove unnecessary repair_env_string in do_initcall_level

Since commit 2f5b7c7d5fcd ("init: fix in-place parameter modification
regression"), parse_args in do_initcall_level is called on a copy of
saved_command_line.  It is unnecessary to call repair_env_string during
this parsing, as this copy is not used for anything later.

Remove the now unnecessary arguments from repair_env_string as well.

Link: http://lkml.kernel.org/r/20191212180023.24339-3-nivedita@alum.mit.edu
Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Cc: Krzysztof Mazur <krzysiek@podlesie.net>
Cc: Chris Metcalf <cmetcalf@tilera.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
init/main.c