aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/block/nbd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c
index dea7d85134ee..87a0a29f6e7e 100644
--- a/drivers/block/nbd.c
+++ b/drivers/block/nbd.c
@@ -626,7 +626,6 @@ static void recv_work(struct work_struct *work)
626 struct nbd_device *nbd = args->nbd; 626 struct nbd_device *nbd = args->nbd;
627 struct nbd_config *config = nbd->config; 627 struct nbd_config *config = nbd->config;
628 struct nbd_cmd *cmd; 628 struct nbd_cmd *cmd;
629 int ret = 0;
630 629
631 while (1) { 630 while (1) {
632 cmd = nbd_read_stat(nbd, args->index); 631 cmd = nbd_read_stat(nbd, args->index);
@@ -636,7 +635,6 @@ static void recv_work(struct work_struct *work)
636 mutex_lock(&nsock->tx_lock); 635 mutex_lock(&nsock->tx_lock);
637 nbd_mark_nsock_dead(nbd, nsock, 1); 636 nbd_mark_nsock_dead(nbd, nsock, 1);
638 mutex_unlock(&nsock->tx_lock); 637 mutex_unlock(&nsock->tx_lock);
639 ret = PTR_ERR(cmd);
640 break; 638 break;
641 } 639 }
642 640