summaryrefslogtreecommitdiffstats
path: root/drivers/block/nbd.c
diff options
context:
space:
mode:
authorKefeng Wang <wangkefeng.wang@huawei.com>2017-07-13 13:20:44 +0200
committerJens Axboe <axboe@kernel.dk>2017-07-13 16:03:30 +0200
commit768516894fb2a0addee6b802af0f8789c0b4c322 (patch)
tree3b03f32304de7b3018748d8ef3033a8f50ffcdfa /drivers/block/nbd.c
parentbfq: dispatch request to prevent queue stalling after the request completion (diff)
downloadlinux-768516894fb2a0addee6b802af0f8789c0b4c322.tar.xz
linux-768516894fb2a0addee6b802af0f8789c0b4c322.zip
nbd: kill unused ret in recv_work
No need to return value in queue work, kill ret variable. Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/nbd.c')
-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)
struct nbd_device *nbd = args->nbd;
struct nbd_config *config = nbd->config;
struct nbd_cmd *cmd;
- int ret = 0;
while (1) {
cmd = nbd_read_stat(nbd, args->index);
@@ -636,7 +635,6 @@ static void recv_work(struct work_struct *work)
mutex_lock(&nsock->tx_lock);
nbd_mark_nsock_dead(nbd, nsock, 1);
mutex_unlock(&nsock->tx_lock);
- ret = PTR_ERR(cmd);
break;
}