]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
lib/cmdline: remove an unneeded local variable in next_arg()
authorMasahiro Yamada <masahiroy@kernel.org>
Fri, 26 Feb 2021 01:21:34 +0000 (17:21 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 26 Feb 2021 17:41:04 +0000 (09:41 -0800)
commit96251a75e0097639a6df558e4e62f762100f03d3
treef3e4b48ee89c61413502ecec689127cb60991318
parent64427985c76fcb54c783de617edf353009499a03
lib/cmdline: remove an unneeded local variable in next_arg()

The local variable 'next' is unneeded because you can simply advance the
existing pointer 'args'.

Link: https://lkml.kernel.org/r/20210201014707.3828753-1-masahiroy@kernel.org
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/cmdline.c