]> git.baikalelectronics.ru Git - kernel.git/commit
net: ena: remove superfluous check in ena_remove()
authorLino Sanfilippo <LinoSanfilippo@gmx.de>
Sat, 18 Feb 2017 11:19:41 +0000 (12:19 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Feb 2017 15:22:59 +0000 (10:22 -0500)
commit9092d92dce254e31a9fcd85bd52acc948cdd891c
tree8c041460e96297f8090d870ab9f934d8e7ee8a18
parent220d56bb77cbcf28c7368432986cca189e32b4f7
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>
drivers/net/ethernet/amazon/ena/ena_netdev.c