block: misc updates to blk_get_queue()
[deliverable/linux.git] / block / genhd.c
index 02e9fca808256f762e0af44e8a1055c322b51b40..c958169d24f04c338624e842622955453f62b5ae 100644 (file)
@@ -615,7 +615,7 @@ void add_disk(struct gendisk *disk)
         * Take an extra ref on queue which will be put on disk_release()
         * so that it sticks around as long as @disk is there.
         */
-       WARN_ON_ONCE(blk_get_queue(disk->queue));
+       WARN_ON_ONCE(!blk_get_queue(disk->queue));
 
        retval = sysfs_create_link(&disk_to_dev(disk)->kobj, &bdi->dev->kobj,
                                   "bdi");
This page took 0.028953 seconds and 5 git commands to generate.