]> 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)
commit82eedbb651cfab4602ba76a33c0dff3eea9bb0db
tree8c041460e96297f8090d870ab9f934d8e7ee8a18
parent47a4e24c28056855aa56c77182b8456e52c6feac
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