]> git.baikalelectronics.ru Git - kernel.git/commit
kernel/profile.c: simplify duplicated code in profile_setup()
authorwuchi <wuchi.zero@gmail.com>
Thu, 1 Sep 2022 00:31:21 +0000 (08:31 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 12 Sep 2022 04:55:12 +0000 (21:55 -0700)
commita215d2819ca67c4c1a1193b7c552ae39a1e5da0a
tree4151d7f700814db069987529f6f13729a08197d7
parent2f1c72429e2835af922de552ce61ad3140625fd8
kernel/profile.c: simplify duplicated code in profile_setup()

The code to parse option string "schedule/sleep/kvm" of cmdline in
function profile_setup is redundant, so simplify that.

Link: https://lkml.kernel.org/r/20220901003121.53597-1-wuchi.zero@gmail.com
Signed-off-by: wuchi <wuchi.zero@gmail.com>
Reviewed-by: Andrew Morton <akpm@linux-foudation.org>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/profile.c