diff options
Diffstat (limited to 'block/elevator.c')
-rw-r--r-- | block/elevator.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/block/elevator.c b/block/elevator.c index a0afdd317cef..d00b283f31d2 100644 --- a/block/elevator.c +++ b/block/elevator.c | |||
@@ -850,12 +850,9 @@ fail_register: | |||
850 | * one again (along with re-adding the sysfs dir) | 850 | * one again (along with re-adding the sysfs dir) |
851 | */ | 851 | */ |
852 | elevator_exit(e); | 852 | elevator_exit(e); |
853 | e = NULL; | ||
854 | q->elevator = old_elevator; | 853 | q->elevator = old_elevator; |
855 | elv_register_queue(q); | 854 | elv_register_queue(q); |
856 | clear_bit(QUEUE_FLAG_ELVSWITCH, &q->queue_flags); | 855 | clear_bit(QUEUE_FLAG_ELVSWITCH, &q->queue_flags); |
857 | if (e) | ||
858 | kobject_put(&e->kobj); | ||
859 | return 0; | 856 | return 0; |
860 | } | 857 | } |
861 | 858 | ||