diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2026-04-14 09:48:39 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2026-04-14 09:48:39 -0700 |
| commit | 2ad332b0e221dedc4c483faef2003be3655f9d77 (patch) | |
| tree | a156f19f1d5766e6a0b78f3f0a152b8058741f39 /lib/debugobjects.c | |
| parent | 15a1bccddccba6cab63fec1345fbd24102d9e0b8 (diff) | |
| parent | 723ddce93e8db101e3cf30d9956240b964603c3c (diff) | |
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()
Diffstat (limited to 'lib/debugobjects.c')
| -rw-r--r-- | lib/debugobjects.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/debugobjects.c b/lib/debugobjects.c index 12f50de85b62..12e2e42e6a31 100644 --- a/lib/debugobjects.c +++ b/lib/debugobjects.c @@ -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 */ |
