]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commite3649293b9e0ec0c83e6271f0a5cbe7bf7019cb9
tree203640add84d87734031bbdfe13af6841197a649
parent3365776ebf6a21d7c4036125fd59b01efc1c060b
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