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: NMike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: NJoe Perches <joe@perches.com> Signed-off-by: NMike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: NJason Gunthorpe <jgg@mellanox.com>
Showing
想要评论请 注册 或 登录