]> git.baikalelectronics.ru Git - kernel.git/commit
IB/qib: Cleanup qib_set_part_key() with direct returns
authorJoe Perches <joe@perches.com>
Tue, 14 Nov 2017 21:29:41 +0000 (16:29 -0500)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 11 Dec 2017 23:19:41 +0000 (16:19 -0700)
commitd91601f8b7b2a24c055df66962750ed9296843ca
tree203640add84d87734031bbdfe13af6841197a649
parent169043f9dea71f1dda03ff368cfe7707f2e42030
IB/qib: Cleanup qib_set_part_key() with direct returns

Perhaps the function is better written without
the empty bail: label and without setting ret
and just using return.

Combining the int/bool conversion of any and the
direct returns makes the resulting code clearer.

Tested-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/qib/qib_file_ops.c