OSDN Git Service

RDMA/hfi1: Delete unreachable code
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 29 Oct 2019 06:27:36 +0000 (08:27 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 13 Nov 2019 00:20:14 +0000 (20:20 -0400)
commit333ee7e2d0b6590cde2bea3e17f30262e0dc0706
treee701e6d51d9d77fb34211053e2b12304f954d2bf
parentd11769fdc1bbf6664083c0caabd9f2f864dd72ec
RDMA/hfi1: Delete unreachable code

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

Link: https://lore.kernel.org/r/20191029062745.7932-8-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hfi1/mad.c