summaryrefslogtreecommitdiff
path: root/include/rdma
diff options
context:
space:
mode:
authorGal Pressman <galpress@amazon.com>2020-07-06 15:03:41 +0300
committerJason Gunthorpe <jgg@nvidia.com>2020-07-07 01:24:20 +0300
commitc5f42b21051517a2070a67d21be8e423d5fdf0d9 (patch)
treefb708bc4c187cfb94aae3b685e414b462f5b25d3 /include/rdma
parentc367124e6cb32e548bb7a2823e00889d09d6bc87 (diff)
downloadlinux-c5f42b21051517a2070a67d21be8e423d5fdf0d9.tar.xz
RDMA/core: Check for error instead of success in alloc MR function
The common kernel pattern is to check for error, not success. Flip the if statement accordingly and keep the main flow unindented. Link: https://lore.kernel.org/r/20200706120343.10816-2-galpress@amazon.com Signed-off-by: Gal Pressman <galpress@amazon.com> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'include/rdma')
0 files changed, 0 insertions, 0 deletions