]> git.baikalelectronics.ru Git - kernel.git/commit
IB/cm: Use container_of() instead of typecast
authorParav Pandit <parav@mellanox.com>
Wed, 2 Oct 2019 12:25:17 +0000 (15:25 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 4 Oct 2019 18:38:16 +0000 (15:38 -0300)
commit57d68981fe4adcc9a3059b2d8170ec8ad29dc935
tree8c1dcdf4b083bc3dd9c351e6940575872b718c25
parentae7c3a41bd0bd03d6752ceaf89b7de601d53066c
IB/cm: Use container_of() instead of typecast

Use container_of() macro to get to timewait info structure instead of
typecasting.

Link: https://lore.kernel.org/r/20191002122517.17721-5-leon@kernel.org
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cm.c