]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit7e2762e1d9f4b9cb67ed6c3b7aff2020c367d4ac
treed051cdb612d14dec6fd20b09f60daa4643891afe
parentb88c50ac304a14f14e70c4ad22577b6b84632d5e
init/main.c: remove unnecessary repair_env_string in do_initcall_level

Since commit 08746a65c296 ("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