test/ctrlr_ut: fix a warning of ctrlr_ut garbage value
Compilation Warning on fedora30. ctrlr_ut.c:1146:12: warning: Assigned value is garbage or undefined event.raw = rsp.nvme_cpl.cdw0; ^ ~~~~~~~~~~~~~~~~~ This is related to issue #822. Change-Id: I58be6df56d309e257105b1d3c96247665c3e31a0 Signed-off-by: Hailiang Wang <hailiangx.e.wang@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/459714 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: yidong0635 <dongx.yi@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
fcbbcf4905
commit
b8bbf63925
@ -1100,7 +1100,7 @@ test_reservation_notification_log_page(void)
|
|||||||
struct spdk_nvmf_ns ns;
|
struct spdk_nvmf_ns ns;
|
||||||
struct spdk_nvmf_request req;
|
struct spdk_nvmf_request req;
|
||||||
union nvmf_h2c_msg cmd;
|
union nvmf_h2c_msg cmd;
|
||||||
union nvmf_c2h_msg rsp;
|
union nvmf_c2h_msg rsp = {{0}};
|
||||||
union spdk_nvme_async_event_completion event = {0};
|
union spdk_nvme_async_event_completion event = {0};
|
||||||
struct spdk_nvme_reservation_notification_log logs[3];
|
struct spdk_nvme_reservation_notification_log logs[3];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user