Commit 083606d2 authored by Linus Torvalds's avatar Linus Torvalds

Avoid compiler warning. [un]likely() wants a boolean, not a pointer expression.

parent e63d062b
......@@ -2292,7 +2292,7 @@ unsigned int ksize(const void *objp)
unsigned long flags;
unsigned int size = 0;
if (likely(objp)) {
if (likely(objp != NULL)) {
local_irq_save(flags);
c = GET_PAGE_CACHE(virt_to_page(objp));
size = kmem_cache_size(c);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment