]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita0920254f6680e811b19536f1cbe26b41ae42867
tree2f897bb55bca6266a7a7bae11ad8b154aa8b22e3
parentfeb8853e67a6010ecd3c90b9d8749c15def05643
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