ibmvnic: Use list_for_each_entry() to simplify code in ibmvnic.c
authorWang Hai <wanghai38@huawei.com>
Thu, 10 Jun 2021 12:54:17 +0000 (20:54 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Jun 2021 21:08:09 +0000 (14:08 -0700)
commit3e98ae0014cb882a2989cf4465e2b26688d3608d
tree819892e89f506c0caa1a5339cad7362e1885fac3
parentbc831facf8a11e4e615dc67ae790325710bc1979
ibmvnic: Use list_for_each_entry() to simplify code in ibmvnic.c

Convert list_for_each() to list_for_each_entry() where
applicable. This simplifies the code.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wang Hai <wanghai38@huawei.com>
Acked-by: Lijun Pan <lijunp213@gmail.com>
Reviewed-by: Dany Madden <drt@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c