]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - block/elevator.c
[PATCH] IB/ipath: don't allow resources to be created with illegal values
[karo-tx-linux.git] / block / elevator.c
index a0afdd317ceffb3d59f230c775da6c03740a426f..bc7baeec0d102014c07ec7308d54dbc2161e4ba9 100644 (file)
@@ -27,7 +27,6 @@
 #include <linux/blkdev.h>
 #include <linux/elevator.h>
 #include <linux/bio.h>
-#include <linux/config.h>
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/init.h>
@@ -850,12 +849,9 @@ fail_register:
         * one again (along with re-adding the sysfs dir)
         */
        elevator_exit(e);
-       e = NULL;
        q->elevator = old_elevator;
        elv_register_queue(q);
        clear_bit(QUEUE_FLAG_ELVSWITCH, &q->queue_flags);
-       if (e)
-               kobject_put(&e->kobj);
        return 0;
 }