net: macb: kill useless use of list_empty()
authorJulia Cartwright <julia@ni.com>
Wed, 6 Dec 2017 00:02:48 +0000 (18:02 -0600)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Dec 2017 01:08:03 +0000 (20:08 -0500)
commita3da8adcb54adf027661c704220ead5116b4ed8a
tree3e023f8997e1ac4a35ead2c6adf28f2c03b9173b
parent9a63b255dffd6de31fe47a80d16d26d0291d3714
net: macb: kill useless use of list_empty()

The list_for_each_entry() macro already handles the case where the list
is empty (by not executing the loop body).  It's not necessary to handle
this case specially, so stop doing so.

Cc: Rafal Ozieblo <rafalo@cadence.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Julia Cartwright <julia@ni.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb_main.c