Commit 98059335 authored by Philipp Hahn's avatar Philipp Hahn Committed by Tejun Heo
Browse files

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.

Signed-off-by: default avatarPhilipp Hahn <phahn-oss@avm.de>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent b8840942
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4529,7 +4529,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);