]> asedeno.scripts.mit.edu Git - linux.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)
commit909624d8db5bbd369690749eb4c4392766f39f94
tree8c1dcdf4b083bc3dd9c351e6940575872b718c25
parent6f26b2ac699cc53f7da9598be6151818461af2a1
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