linux/drivers/infiniband
Colin Ian King 318a8ab7e8 IB/core: remove redundant check on prot_sg_cnt
prot_sg_cnt cannot be zero as a previous check on ret (from which
prot_sg_cnt is assigned) returns -ENOMEM if is it zero.  Since
it cannot be zero we can simplify the code by removing the non
-zero check on prot_sg_cnt and redundant else statement.

Detected by CoverityScan, COD#1357188 ("Logically dead code")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2017-10-10 10:49:45 -04:00
..
core IB/core: remove redundant check on prot_sg_cnt 2017-10-10 10:49:45 -04:00
hw IB/hfi1: Do not warn on lid conversions for OPA 2017-10-04 15:39:45 -04:00
sw IB/rxe: put the pool on allocation failure 2017-10-09 12:10:41 -04:00
ulp IB/core: Simplify sa_path_set_[sd]lid() calls 2017-10-10 10:49:44 -04:00
Kconfig infiniband: add MMU dependency for user_mem 2017-10-10 10:49:44 -04:00
Makefile IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00