net: netcp: ethss: fix up incorrect use of list api
authorKaricheri, Muralidharan <m-karicheri2@ti.com>
Tue, 28 Jul 2015 22:20:13 +0000 (18:20 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Jul 2015 01:37:40 +0000 (18:37 -0700)
commitc20afae75c32ec69eccc4ee432fa27d426e85a83
tree2ac8fd5f33a732848b76747959de9b33af3db7ad
parent01a030996e1e2c268a4a484e2cbd3722b705414d
net: netcp: ethss: fix up incorrect use of list api

The code seems to assume a null is returned when the list is empty
from first_sec_slave() to break the loop which is incorrect. Fix the
code by using list_empty().

Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/netcp_ethss.c