aboutsummaryrefslogtreecommitdiffstats
path: root/block/bsg.c
diff options
context:
space:
mode:
Diffstat (limited to 'block/bsg.c')
-rw-r--r--block/bsg.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/block/bsg.c b/block/bsg.c
index 9651ec7b87c2..4cf703fd98bb 100644
--- a/block/bsg.c
+++ b/block/bsg.c
@@ -769,12 +769,10 @@ static struct bsg_device *bsg_add_device(struct inode *inode,
769 struct file *file) 769 struct file *file)
770{ 770{
771 struct bsg_device *bd; 771 struct bsg_device *bd;
772 int ret;
773#ifdef BSG_DEBUG 772#ifdef BSG_DEBUG
774 unsigned char buf[32]; 773 unsigned char buf[32];
775#endif 774#endif
776 ret = blk_get_queue(rq); 775 if (!blk_get_queue(rq))
777 if (ret)
778 return ERR_PTR(-ENXIO); 776 return ERR_PTR(-ENXIO);
779 777
780 bd = bsg_alloc_device(); 778 bd = bsg_alloc_device();