IB/rxe: Remove unneeded cast in rxe_srq_from_attr()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 17 Nov 2016 11:00:05 +0000 (14:00 +0300)
committerDoug Ledford <dledford@redhat.com>
Mon, 12 Dec 2016 21:31:45 +0000 (16:31 -0500)
commit95db9d05b717b1ec242799103c09acda8d728974
tree6381a7596172dfdfb16daae59a16237f43b41745
parent4ac4707102d9ea1ffc9b5735891f6c5ee3d236e5
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>
drivers/infiniband/sw/rxe/rxe_srq.c