ionic: drop useless check of PCI driver data validity
The driver core will call to .remove callback only if .probe succeeded
and it will ensure that driver data has pointer to struct ionic.
There is no need to check it again.
Fixes: fbfb803153 ("ionic: Add hardware init and device commands")
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Acked-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
739b2adf99
commit
524df92c19
1 changed files with 0 additions and 3 deletions
|
|
@ -373,9 +373,6 @@ static void ionic_remove(struct pci_dev *pdev)
|
|||
{
|
||||
struct ionic *ionic = pci_get_drvdata(pdev);
|
||||
|
||||
if (!ionic)
|
||||
return;
|
||||
|
||||
del_timer_sync(&ionic->watchdog_timer);
|
||||
|
||||
if (ionic->lif) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue