hw/nvme: cleanup error reporting in nvme_init_pci()
commit973f76cf7743545a5d8a0a8bfdfe2cd02aa3e238
authorKlaus Jensen <k.jensen@samsung.com>
Wed, 9 Nov 2022 10:40:16 +0000 (9 11:40 +0100)
committerKlaus Jensen <k.jensen@samsung.com>
Wed, 11 Jan 2023 07:41:19 +0000 (11 08:41 +0100)
tree1203268a21c14ac4b18012835a059506d587c5f1
parent784fd35387e9e6b42e3f365ddf44263eb25de8f7
hw/nvme: cleanup error reporting in nvme_init_pci()

Replace the local Error variable with errp and ERRP_GUARD() and change
the return value to bool.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
hw/nvme/ctrl.c