Message ID | 21c3d738-2da9-884d-1703-98cba826e0f0@users.sourceforge.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/block/elevator.c b/block/elevator.c index 7096c22..29dc177 100644 --- a/block/elevator.c +++ b/block/elevator.c @@ -846,8 +846,7 @@ int elv_register(struct elevator_type *e) spin_lock(&elv_list_lock); if (elevator_find(e->elevator_name)) { spin_unlock(&elv_list_lock); - if (e->icq_cache) - kmem_cache_destroy(e->icq_cache); + kmem_cache_destroy(e->icq_cache); return -EBUSY; } list_add_tail(&e->list, &elv_list);