]> 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)
commit50812a521446c2cccfce2a1b2675e49bab16362a
tree3e023f8997e1ac4a35ead2c6adf28f2c03b9173b
parent79840dd8c045d2d1013c89457b633387f4026e41
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