mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
Merge tag 'core-debugobjects-2026-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull debugobjects update from Thomas Gleixner: "A trivial update for debugobjects to drop a pointless likely() around IS_ERR_OR_NULL()" * tag 'core-debugobjects-2026-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: debugobjects: Drop likely() around !IS_ERR_OR_NULL()
This commit is contained in:
@@ -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