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)
commit35783ccbe519b33f6652b2d7aafcfc82f10b1a1b
tree4151d7f700814db069987529f6f13729a08197d7
parent63095f4f3af59322bea984a6ae44337439348fe0
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