Re: [PATCH] block: elevator: remove unneeded null check in elv_register()
From: John Pittman <hidden>
Date: 2018-08-30 20:02:47
From: John Pittman <hidden>
Date: 2018-08-30 20:02:47
Ha! Ok, thanks for reviewing Jens. On Thu, Aug 30, 2018 at 4:00 PM, Jens Axboe [off-list ref] wrote:
On 8/30/18 1:56 PM, John Pittman wrote:quoted
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