diff options
| author | Colin Ian King <[email protected]> | 2017-10-09 17:12:00 +0100 |
|---|---|---|
| committer | Doug Ledford <[email protected]> | 2017-10-10 10:49:45 -0400 |
| commit | 318a8ab7e87887946084a7c0398ecc978c6aa71d (patch) | |
| tree | 39d9d69fbecd03023dbc676208000dd5fadc256a /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 9d18717790c43c904fabe9da7a4c6b2ebed2c4d8 (diff) | |
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 <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions