Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: ena: remove superfluous check in ena_remove()

The check in ena_remove() for the pci driver data not being NULL is not
needed, since it is always set in the probe() function. Remove the
superfluous check.

Signed-off-by: Lino Sanfilippo <LinoSanfilippo@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Lino Sanfilippo and committed by
David S. Miller
90a6c997 2317c6b5

-6
-6
drivers/net/ethernet/amazon/ena/ena_netdev.c
··· 3163 3163 struct ena_com_dev *ena_dev; 3164 3164 struct net_device *netdev; 3165 3165 3166 - if (!adapter) 3167 - /* This device didn't load properly and it's resources 3168 - * already released, nothing to do 3169 - */ 3170 - return; 3171 - 3172 3166 ena_dev = adapter->ena_dev; 3173 3167 netdev = adapter->netdev; 3174 3168