Re: [PATCH] block: elevator: remove unneeded null check in elv_register()
From: Jens Axboe <axboe@kernel.dk>
Date: 2018-08-30 20:00:15
From: Jens Axboe <axboe@kernel.dk>
Date: 2018-08-30 20:00:15
On 8/30/18 1:56 PM, John Pittman wrote:
Since commit 3942d2991852 ("mm/slab_common: allow NULL cache
pointer in kmem_cache_destroy()"), the kmem_cache_destroy()
function has been able to handle null pointers. Remove NULL
check against e->icq_cache in elv_register(), simplifying the code.You're the 3rd person sending in this patch this week :-) http://git.kernel.dk/cgit/linux-block/commit/?h=for-linus&id=62d2a1940709198a522a43ff8be8b8f6b3654dec -- Jens Axboe