Prefer using IS_ERR_OR_NULL() over using IS_ERR() and a manual NULL check. Change generated with coccinelle.
To: Russell King <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Philipp Hahn <[email protected]> --- arch/arm/common/bL_switcher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/common/bL_switcher.c b/arch/arm/common/bL_switcher.c index d1e82a318e3b22bf6f54e9a8d5366ddc7a6e44ca..46cbb5caf9f17a22a7c42e4254cb68c6cdebc4e4 100644 --- a/arch/arm/common/bL_switcher.c +++ b/arch/arm/common/bL_switcher.c @@ -628,7 +628,7 @@ static void bL_switcher_disable(void) t = &bL_threads[cpu]; task = t->task; t->task = NULL; - if (!task || IS_ERR(task)) + if (IS_ERR_OR_NULL(task)) continue; kthread_stop(task); /* no more switch may happen on this CPU at this point */ -- 2.43.0
