Skip to content

Commit

Permalink
nvme: remove superfluous else in nvme_ctrl_loss_tmo_store
Browse files Browse the repository at this point in the history
If there is an error we will leave the function early. So there
is no need for an else. Remove it.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
  • Loading branch information
Daniel Wagner authored and Christoph Hellwig committed Apr 2, 2021
1 parent bff4bcf commit 25a64e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/nvme/host/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3659,7 +3659,7 @@ static ssize_t nvme_ctrl_loss_tmo_store(struct device *dev,
if (err)
return -EINVAL;

else if (ctrl_loss_tmo < 0)
if (ctrl_loss_tmo < 0)
opts->max_reconnects = -1;
else
opts->max_reconnects = DIV_ROUND_UP(ctrl_loss_tmo,
Expand Down

0 comments on commit 25a64e4

Please sign in to comment.