IB/mlx4: Use list_for_each_entry_safe
authorGeliang Tang <geliangtang@163.com>
Mon, 7 Dec 2015 15:04:43 +0000 (23:04 +0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 13 May 2016 23:40:03 +0000 (19:40 -0400)
commitee71b9681df6b71b7fa110d42200bec05dfaf19a
treef4f3f594f94d6732d965d4cad76a01a74112e829
parent0f377d86252d11bfea941852785e3094b93601a7
IB/mlx4: Use list_for_each_entry_safe

Simplify the code in search_relocate_mgid0_group with by using
list_for_each_entry_safe().

Signed-off-by: Geliang Tang <geliangtang@163.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx4/mcg.c