Spdk/module/bdev
yidong0635 eb9577f8d5 module/nvme: Fix warning about scanbuild.
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>
2020-10-27 08:42:32 +00:00
..
aio bdev_aio: fix interrupt mode notify error 2020-10-26 11:49:03 +00:00
compress bdev_module: remove config_text 2020-10-21 02:25:45 +00:00
crypto bdev modules: remove legacy config support 2020-10-20 02:42:16 +00:00
delay bdev_module: remove config_text 2020-10-21 02:25:45 +00:00
error module/error: remove legacy config support 2020-10-16 08:15:26 +00:00
ftl build: remove unused references to conf library 2020-10-20 02:42:16 +00:00
gpt module/gpt: remove legacy config support 2020-10-19 09:55:43 +00:00
iscsi bdev modules: remove legacy config support 2020-10-20 02:42:16 +00:00
lvol bdev/lvol: Pass bdev name instead of bdev pointer to vbdev_lvs_create 2020-10-20 08:52:29 +00:00
malloc module/malloc: remove legacy config support 2020-10-19 09:55:43 +00:00
null module/null: remove legacy config support 2020-10-19 09:55:43 +00:00
nvme module/nvme: Fix warning about scanbuild. 2020-10-27 08:42:32 +00:00
ocf bdev modules: remove legacy config support 2020-10-20 02:42:16 +00:00
passthru module/passthru: remove legacy config support 2020-10-19 09:55:43 +00:00
pmem bdev modules: remove legacy config support 2020-10-20 02:42:16 +00:00
raid bdev modules: remove legacy config support 2020-10-20 02:42:16 +00:00
rbd bdev modules: remove legacy config support 2020-10-20 02:42:16 +00:00
split module/split: remove legacy config support 2020-10-19 09:55:43 +00:00
uring module/uring: remove legacy config support 2020-10-19 09:55:43 +00:00
virtio module/virtio_blk/sci: remove legacy config support 2020-10-20 02:42:16 +00:00
zone_block bdev_module: remove config_text 2020-10-21 02:25:45 +00:00
Makefile bdev: move bdev_rpc library contents 2020-09-25 11:43:42 +00:00