]> 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)
commitfd23e0ee8d3c8ff1a6a0dc8a005477a6bdda4eb4
tree63abb0cf19165032091731b31a49287e5767858f
parentc15075d45384c67feddecd98a69304d147114992
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: e10964c5bf37 ("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