mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
debugobjects: Drop likely() around !IS_ERR_OR_NULL()
IS_ERR_OR_NULL() already uses likely(!ptr) internally. checkpatch points out the nesting: Remove the explicit use of likely(). Change generated with coccinelle. Signed-off-by: Philipp Hahn <phahn-oss@avm.de> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Link: https://patch.msgid.link/20260310-b4-is_err_or_null-v1-59-bd63b656022d@avm.de
This commit is contained in:
committed by
Thomas Gleixner
parent
c369299895
commit
723ddce93e
@@ -1024,7 +1024,7 @@ void debug_object_assert_init(void *addr, const struct debug_obj_descr *descr)
|
||||
raw_spin_lock_irqsave(&db->lock, flags);
|
||||
obj = lookup_object_or_alloc(addr, db, descr, false, true);
|
||||
raw_spin_unlock_irqrestore(&db->lock, flags);
|
||||
if (likely(!IS_ERR_OR_NULL(obj)))
|
||||
if (!IS_ERR_OR_NULL(obj))
|
||||
return;
|
||||
|
||||
/* If NULL the allocation has hit OOM */
|
||||
|
||||
Reference in New Issue
Block a user