Spdk/lib/bdev/nvme
Jim Harris 49cf3861d1 bdev/nvme: clean up submit_request return codes
Some of the internal functions used to return the
number of bytes associated with a successfully submitted
IO, but that was changed a while ago to just return 0
for success.

So change some of the callers of these functions to
just look for != 0 for failure rather than < 0.  This
preps for some upcoming ENOMEM handling changes.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I0a66dd6bfac9053e0fd6103dee1ea36b20d902df

Reviewed-on: https://review.gerrithub.io/378856
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
2017-09-25 13:56:29 -04:00
..
bdev_nvme_rpc.c bdev: rename blockdev instances to bdev 2017-07-14 13:31:30 -04:00
bdev_nvme.c bdev/nvme: clean up submit_request return codes 2017-09-25 13:56:29 -04:00
bdev_nvme.h bdev: rename blockdev instances to bdev 2017-07-14 13:31:30 -04:00
Makefile bdev: rename blockdev instances to bdev 2017-07-14 13:31:30 -04:00