mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-13 21:02:35 +00:00
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>
This commit is contained in:
parent
afb18e0ed8
commit
90beb2e7a0
@ -3878,7 +3878,6 @@ static enum blk_eh_timer_return mtip_cmd_timeout(struct request *req,
|
|||||||
bool reserved)
|
bool reserved)
|
||||||
{
|
{
|
||||||
struct driver_data *dd = req->q->queuedata;
|
struct driver_data *dd = req->q->queuedata;
|
||||||
int ret = BLK_EH_RESET_TIMER;
|
|
||||||
|
|
||||||
if (reserved)
|
if (reserved)
|
||||||
goto exit_handler;
|
goto exit_handler;
|
||||||
@ -3891,7 +3890,7 @@ static enum blk_eh_timer_return mtip_cmd_timeout(struct request *req,
|
|||||||
|
|
||||||
wake_up_interruptible(&dd->port->svc_wait);
|
wake_up_interruptible(&dd->port->svc_wait);
|
||||||
exit_handler:
|
exit_handler:
|
||||||
return ret;
|
return BLK_EH_RESET_TIMER;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct blk_mq_ops mtip_mq_ops = {
|
static struct blk_mq_ops mtip_mq_ops = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user