diff options
author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2017-07-13 07:20:44 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-07-13 10:03:30 -0400 |
commit | 768516894fb2a0addee6b802af0f8789c0b4c322 (patch) | |
tree | 3b03f32304de7b3018748d8ef3033a8f50ffcdfa | |
parent | 3f7cb4f4130ca5693f0698211bf1e42945efbb8c (diff) |
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>
-rw-r--r-- | drivers/block/nbd.c | 2 |
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 | ||