ublk: use count in ublk_io_xmit() in release builds
count was unused in release builds. Otherwise following error is produced on clang build: 19:30:56 ublk.c:974:14: error: variable 'count' set but not used [-Werror,-Wunused-but-set-variable] 19:30:56 int rc = 0, count = 0, tag; 19:30:56 ^ 19:30:56 1 error generated. Change-Id: If7ca88de37ed6e40826e09b055355c07f67c8869 Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16450 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Xiaodong Liu <xiaodong.liu@intel.com>
This commit is contained in:
parent
bbd3d96b85
commit
2f8a723edf
@ -993,7 +993,10 @@ ublk_io_xmit(struct ublk_queue *q)
|
||||
}
|
||||
|
||||
rc = io_uring_submit(&q->ring);
|
||||
assert(rc == count);
|
||||
if (rc != count) {
|
||||
SPDK_ERRLOG("could not submit all commands\n");
|
||||
assert(false);
|
||||
}
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user