aboutsummaryrefslogtreecommitdiff
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorBjorn Helgaas <[email protected]>2021-12-08 13:24:46 -0600
committerJens Axboe <[email protected]>2021-12-14 06:59:19 -0700
commit2920417c98dbe4b58200c12fc9dc152834b76e42 (patch)
treee3839dfcfbc36b9a51c25be3b01c1187ca10ea42 /lib/netdev-notifier-error-inject.c
parent52a0cab35c568f896067641d8e07f798341954f5 (diff)
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions