OSDN Git Service

RDMA/ocrdma: Simplify process_mad function
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 29 Oct 2019 06:27:40 +0000 (08:27 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 6 Nov 2019 20:00:06 +0000 (16:00 -0400)
commit84b56d57cf3cc9640b69cbb3a5d023d010ccb62a
tree1ad288c4b46027b2500f4831ff89bc9d354ed549
parentdd0b0159f7b31439679879fcf2574d7ad744b6f1
RDMA/ocrdma: Simplify process_mad function

Change the switch with one case into a simple if statement so the code is
less confusing.

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