]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3fc814598a386024a26c1c6a843a4e5e3f387087
tree1ad288c4b46027b2500f4831ff89bc9d354ed549
parent659ab9713c1a4b23781ce32d9f6e07c13d61041a
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