RDMA/mad: Do not check MAD sizes in roce and ib drivers
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 29 Oct 2019 06:27:37 +0000 (08:27 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 6 Nov 2019 19:55:22 +0000 (15:55 -0400)
commitdd0b0159f7b31439679879fcf2574d7ad744b6f1
treee1d7ca6a00e06eca9073d1e1d389b9dfc4e83c0f
parent6a42265c9116a2ff8b94b52525c95f177cb15db2
RDMA/mad: Do not check MAD sizes in roce and ib drivers

All callers for process_mad allocate MAD structures with proper sizes,
there is no need to recheck it.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx4/mad.c
drivers/infiniband/hw/mlx5/mad.c
drivers/infiniband/hw/mthca/mthca_mad.c
drivers/infiniband/hw/ocrdma/ocrdma_ah.c
drivers/infiniband/hw/qib/qib_mad.c