net/mlx4: use rb_entry()
authorGeliang Tang <geliangtang@gmail.com>
Fri, 20 Jan 2017 14:36:57 +0000 (22:36 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Jan 2017 21:46:13 +0000 (16:46 -0500)
commit3704eb6f6fd09023e2c94e8ead687b908ab02135
tree2f897bb55bca6266a7a7bae11ad8b154aa8b22e3
parent530cef21d98930c4d10f188325e00330455d216d
net/mlx4: use rb_entry()

To make the code clearer, use rb_entry() instead of container_of() to
deal with rbtree.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/resource_tracker.c