qemu/hw/nvme
Marc-André Lureau 8cdb368d19 hw/nvme: fix -Werror=maybe-uninitialized
../hw/nvme/ctrl.c:6081:21: error: ‘result’ may be used uninitialized [-Werror=maybe-uninitialized]

It's not obvious that 'result' is set in all code paths. When &result is
a returned argument, it's even less clear.

Looking at various assignments, 0 seems to be a suitable default value.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Klaus Jensen <k.jensen@samsung.com>
Message-ID: <20240328102052.3499331-18-marcandre.lureau@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
2024-04-02 16:15:07 +02:00
..
ctrl.c hw/nvme: fix -Werror=maybe-uninitialized 2024-04-02 16:15:07 +02:00
dif.c hw/nvme: fix CRC64 for guard tag 2023-08-08 08:09:38 +02:00
dif.h
Kconfig kconfig: Add NVME to s390x machines 2023-09-12 12:07:16 +02:00
meson.build hw/nvme: Add NVMe NGUID property 2024-03-12 15:48:56 +01:00
nguid.c hw/nvme: Add NVMe NGUID property 2024-03-12 15:48:56 +01:00
ns.c hw/nvme: Add NVMe NGUID property 2024-03-12 15:48:56 +01:00
nvme.h hw/nvme: add machine compatibility parameter to enable msix exclusive bar 2024-03-12 16:05:53 +01:00
subsys.c
trace-events
trace.h