aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/sw/rxe/rxe_recv.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2016-11-17 14:00:05 +0300
committerDoug Ledford <dledford@redhat.com>2016-12-12 16:31:45 -0500
commit95db9d05b717b1ec242799103c09acda8d728974 (patch)
tree6381a7596172dfdfb16daae59a16237f43b41745 /drivers/infiniband/sw/rxe/rxe_recv.c
parentIB/rxe: Use DEFINE_SPINLOCK() for spinlock (diff)
downloadlinux-dev-95db9d05b717b1ec242799103c09acda8d728974.tar.xz
linux-dev-95db9d05b717b1ec242799103c09acda8d728974.zip
IB/rxe: Remove unneeded cast in rxe_srq_from_attr()
It makes me nervous when we cast pointer parameters. I would estimate that around 50% of the time, it indicates a bug. Here the cast is not needed becaue u32 and and unsigned int are the same thing. Removing the cast makes the code more robust and future proof in case any of the types change. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com> Acked-by: Moni Shoua <monis@mellanox.com> Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/sw/rxe/rxe_recv.c')
0 files changed, 0 insertions, 0 deletions