summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorKefeng Wang <wangkefeng.wang@huawei.com>2017-07-13 19:20:44 +0800
committerJens Axboe <axboe@kernel.dk>2017-07-13 08:03:30 -0600
commit768516894fb2a0addee6b802af0f8789c0b4c322 (patch)
tree3b03f32304de7b3018748d8ef3033a8f50ffcdfa /drivers/block
parent3f7cb4f4130ca5693f0698211bf1e42945efbb8c (diff)
downloadblackbird-obmc-linux-768516894fb2a0addee6b802af0f8789c0b4c322.tar.gz
blackbird-obmc-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')
-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;
}
OpenPOWER on IntegriCloud