RDMA/qib: Tidy up process_cc()
authorAlex Dewar <alex.dewar90@gmail.com>
Tue, 25 Aug 2020 17:12:44 +0000 (18:12 +0100)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 31 Aug 2020 16:21:06 +0000 (13:21 -0300)
commit524d8ffd07f0ca10b24011487339f836ed859b32
tree5083599611239de45a89ca30ddf06e1f4c8595ab
parentd2598bb809d13a47e48a39a96ae8599ee8468025
RDMA/qib: Tidy up process_cc()

This function has a lot of gotos which could be replaced by simple
returns, making the function tidier and less bug prone.

Link: https://lore.kernel.org/r/20200825171242.448447-2-alex.dewar90@gmail.com
Signed-off-by: Alex Dewar <alex.dewar90@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/qib/qib_mad.c