aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/block/nbd.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c
index 46b35f7acfde..7ed1308c42d3 100644
--- a/drivers/block/nbd.c
+++ b/drivers/block/nbd.c
@@ -751,7 +751,6 @@ static int __nbd_ioctl(struct block_device *bdev, struct nbd_device *nbd,
751 * This is for compatibility only. The queue is always cleared 751 * This is for compatibility only. The queue is always cleared
752 * by NBD_DO_IT or NBD_CLEAR_SOCK. 752 * by NBD_DO_IT or NBD_CLEAR_SOCK.
753 */ 753 */
754 BUG_ON(!nbd->sock && !list_empty(&nbd->queue_head));
755 return 0; 754 return 0;
756 755
757 case NBD_PRINT_DEBUG: 756 case NBD_PRINT_DEBUG: