diff options
author | Jens Axboe <axboe@fb.com> | 2016-03-04 10:15:48 -0500 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-03-04 10:15:48 -0500 |
commit | 90beb2e7a0c5143a904be04c9c03afff436e7915 (patch) | |
tree | ade2372ba75ca0fc177e31bcf343c3154832f050 /drivers/block | |
parent | afb18e0ed862fae05aa41be278c1ddb87473c7b1 (diff) |
mtip32xx: remove unneeded variable in mtip_cmd_timeout()
We always return BLK_EH_RESET_TIMER, so no point in storing that in
an integer.
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/mtip32xx/mtip32xx.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/block/mtip32xx/mtip32xx.c b/drivers/block/mtip32xx/mtip32xx.c index 1c330b61f05d..cc2e71d0a77f 100644 --- a/drivers/block/mtip32xx/mtip32xx.c +++ b/drivers/block/mtip32xx/mtip32xx.c | |||
@@ -3878,7 +3878,6 @@ static enum blk_eh_timer_return mtip_cmd_timeout(struct request *req, | |||
3878 | bool reserved) | 3878 | bool reserved) |
3879 | { | 3879 | { |
3880 | struct driver_data *dd = req->q->queuedata; | 3880 | struct driver_data *dd = req->q->queuedata; |
3881 | int ret = BLK_EH_RESET_TIMER; | ||
3882 | 3881 | ||
3883 | if (reserved) | 3882 | if (reserved) |
3884 | goto exit_handler; | 3883 | goto exit_handler; |
@@ -3891,7 +3890,7 @@ static enum blk_eh_timer_return mtip_cmd_timeout(struct request *req, | |||
3891 | 3890 | ||
3892 | wake_up_interruptible(&dd->port->svc_wait); | 3891 | wake_up_interruptible(&dd->port->svc_wait); |
3893 | exit_handler: | 3892 | exit_handler: |
3894 | return ret; | 3893 | return BLK_EH_RESET_TIMER; |
3895 | } | 3894 | } |
3896 | 3895 | ||
3897 | static struct blk_mq_ops mtip_mq_ops = { | 3896 | static struct blk_mq_ops mtip_mq_ops = { |