mtip32xx: remove pointless drvdata checking
authorBjorn Helgaas <bhelgaas@google.com>
Wed, 8 Dec 2021 19:24:46 +0000 (13:24 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 14 Dec 2021 13:59:19 +0000 (06:59 -0700)
commit2920417c98dbe4b58200c12fc9dc152834b76e42
treee3839dfcfbc36b9a51c25be3b01c1187ca10ea42
parent52a0cab35c568f896067641d8e07f798341954f5
mtip32xx: remove pointless drvdata checking

The .suspend() and .resume() methods are only called after the .probe()
method (mtip_pci_probe()) has set the drvdata and returned success.

Therefore, if we get to mtip_pci_suspend() or mtip_pci_resume(), the
drvdata must be valid.  Drop the unnecessary checking.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://lore.kernel.org/r/20211208192449.146076-2-helgaas@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/mtip32xx/mtip32xx.c