[PATCH v5] kernel/crash_core.c : remove redundant check of ck_cmdline

2022-05-06 Thread lizhe
At the end of get_last_crashkernel(), the judgement of ck_cmdline is obviously unnecessary and causes redundance, let's clean it up. Signed-off-by: lizhe Acked-by: Baoquan He Acked-by: Philipp Rudo --- kernel/crash_core.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/k

[PATCH v4] kernel/crash_core.c : remove redundant check of ck_cmdline

2022-05-05 Thread lizhe
At the end of get_last_crashkernel(), the judgement of ck_cmdline is obviously unnecessary and causes redundance, let's clean it up. Signed-off-by: lizhe Acked-by: Baoquan He Acked-by: Philipp Rudo --- kernel/crash_core.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/k

[PATCH] kernel/crash_core.c : Remove redundant checks for ck_cmdline is NULL

2022-05-04 Thread lizhe
When ck_cmdline is NULL. The last three lines of this function(get_last_crashkernel()) are equivalent to : if (!NULL) return NULL; return NULL; This is obviously a redundant check Signed-off-by: lizhe --- kernel/crash_core.c | 3 --- 1 file changed, 3 deletions

[PATCH] kernel/crash_core.c : Remove redundant checks for ck_cmdline is NULL

2022-04-25 Thread lizhe
When ck_cmdline is NULL, the only caller of get_last_crashkernel() has already done non-NULL check(see __parse_crashkernel()), so it doesn't make any sense to make a check here Signed-off-by: lizhe --- kernel/crash_core.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/k

[PATCH] kernel/crash_core.c: No judgment required

2021-12-09 Thread lizhe
No judgment required ck_cmdline is NULL its caller has alreadly judged, see __parse_crashkernel function Signed-off-by: lizhe --- kernel/crash_core.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/kernel/crash_core.c b/kernel/crash_core.c index eb53f5ec62c9..9981cf9b9fe4 100644 --- a