> -----Original Message-----
> From: Intel-wired-lan <[email protected]> On Behalf
> Of Philipp Hahn
> Sent: Tuesday, March 10, 2026 12:49 PM
> To: [email protected]; [email protected];
> [email protected]; [email protected]; [email protected]; dm-
> [email protected]; [email protected];
> [email protected]; [email protected]; intel-wired-
> [email protected]; [email protected]; [email protected];
> [email protected]; [email protected];
> [email protected]; [email protected]; linux-
> [email protected]; [email protected]; linux-
> [email protected]; [email protected]; linux-
> [email protected]; [email protected]; linux-
> [email protected]; [email protected]; linux-
> [email protected]; [email protected]; linux-
> [email protected]; [email protected]; [email protected];
> [email protected]; [email protected]; linux-
> [email protected]; [email protected]; linux-
> [email protected]; [email protected]; linux-
> [email protected]; [email protected]; linux-
> [email protected]; [email protected]; linux-security-
> [email protected]; [email protected]; linux-
> [email protected]; [email protected];
> [email protected]; [email protected]; linux-
> [email protected]; [email protected];
> [email protected]; [email protected]; sched-
> [email protected]; [email protected]; tipc-
> [email protected]; [email protected]; Philipp Hahn
> <[email protected]>
> Cc: Tejun Heo <[email protected]>; David Vernet <[email protected]>;
> Andrea Righi <[email protected]>; Changwoo Min <[email protected]>;
> Ingo Molnar <[email protected]>; Peter Zijlstra <[email protected]>;
> Juri Lelli <[email protected]>; Vincent Guittot
> <[email protected]>; Dietmar Eggemann
> <[email protected]>; Steven Rostedt <[email protected]>; Ben
> Segall <[email protected]>; Mel Gorman <[email protected]>; Valentin
> Schneider <[email protected]>
> Subject: [Intel-wired-lan] [PATCH 16/61] sched: Prefer IS_ERR_OR_NULL
> over manual NULL check
> 
> Prefer using IS_ERR_OR_NULL() over using IS_ERR() and a manual NULL
> check.
> 
> Change generated with coccinelle.
> 
> To: Tejun Heo <[email protected]>
> To: David Vernet <[email protected]>
> To: Andrea Righi <[email protected]>
> To: Changwoo Min <[email protected]>
> To: Ingo Molnar <[email protected]>
> To: Peter Zijlstra <[email protected]>
> To: Juri Lelli <[email protected]>
> To: Vincent Guittot <[email protected]>
> To: Dietmar Eggemann <[email protected]>
> To: Steven Rostedt <[email protected]>
> To: Ben Segall <[email protected]>
> To: Mel Gorman <[email protected]>
> To: Valentin Schneider <[email protected]>
> Cc: [email protected]
> Cc: [email protected]
> Signed-off-by: Philipp Hahn <[email protected]>
> ---
>  kernel/sched/ext.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/kernel/sched/ext.c b/kernel/sched/ext.c index
> 1594987d637b09e586ae788b7f2e6336332d605a..cfa869bd7de5406a5ca094992ab0
> 4c62b0e92fd0 100644
> --- a/kernel/sched/ext.c
> +++ b/kernel/sched/ext.c
> @@ -3688,7 +3688,7 @@ static void scx_sched_free_rcu_work(struct
> work_struct *work)
>       do {
>               rhashtable_walk_start(&rht_iter);
> 
> -             while ((dsq = rhashtable_walk_next(&rht_iter)) &&
> !IS_ERR(dsq))
> +             while (!IS_ERR_OR_NULL((dsq =
> rhashtable_walk_next(&rht_iter))))
>                       destroy_dsq(sch, dsq->id);
> 
>               rhashtable_walk_stop(&rht_iter);
> 
> --
> 2.43.0

Reviewed-by: Aleksandr Loktionov <[email protected]>

Reply via email to