]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf644b0b17660cff738b71f4de9d1b5df34e60557
tree3e023f8997e1ac4a35ead2c6adf28f2c03b9173b
parent6cac473c6306d393122b2a511805772be3bb2bb1
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