]> git.baikalelectronics.ru Git - kernel.git/commit
ionic: drop useless check of PCI driver data validity
authorLeon Romanovsky <leonro@nvidia.com>
Wed, 21 Jul 2021 09:54:13 +0000 (12:54 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Jul 2021 16:03:07 +0000 (09:03 -0700)
commit3c53c23921293809f596553132cc835a2c557a99
tree63abb0cf19165032091731b31a49287e5767858f
parent28421236ef6cf5b12647232c502c2299ab277959
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: 22c2f0b535b9 ("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>
drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c