Analyzer treats these as warning, they are unused. Issue: bdev_nvme_rpc.c:706:7: warning: Although the value stored to 'rc' is used in the enclosing expression, the value is never actually read from 'rc' if ((rc = spdk_nvme_ctrlr_reset(firm_ctx->ctrlr)) != 0) { ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bdev_nvme_rpc.c:851:8: warning: Although the value stored to 'rc' is used in the enclosing expression, the value is never actually read from 'rc' if ((rc = spdk_bdev_open(bdev2, true, NULL, NULL, &desc)) != 0) { ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. nvme_rpc.c:375:10: warning: Although the value stored to 'rc' is used in the enclosing expression, the value is never actually read from 'rc' return rc = val->type == SPDK_JSON_VAL_STRING ? -ENOMEM : -EINVAL; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. Signed-off-by: yidong0635 <dongx.yi@intel.com> Change-Id: I1d58db97b00ac2d102c1a46d7852c2ce3f559fda Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4824 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> |
||
---|---|---|
.. | ||
accel | ||
bdev | ||
blob | ||
blobfs | ||
env_dpdk | ||
event | ||
sock | ||
Makefile |