summaryrefslogtreecommitdiffstats
path: root/hw/nvram
diff options
context:
space:
mode:
authorTong Ho2022-04-01 21:06:31 +0200
committerPeter Maydell2022-04-05 10:28:04 +0200
commit2e9ce532004f7a6de4f26f18bfeccff09a52c2c3 (patch)
tree4e9089174d4c67108e8724af37d5d110130a0cb0 /hw/nvram
parentMerge tag 'pull-ppc-20220404' of https://github.com/legoater/qemu into staging (diff)
downloadqemu-2e9ce532004f7a6de4f26f18bfeccff09a52c2c3.tar.gz
qemu-2e9ce532004f7a6de4f26f18bfeccff09a52c2c3.tar.xz
qemu-2e9ce532004f7a6de4f26f18bfeccff09a52c2c3.zip
xlnx-bbram: hw/nvram: Fix uninitialized Error *
This adds required initialization of Error * variable. Signed-off-by: Tong Ho <tong.ho@xilinx.com> Reviewed-by: Francisco Iglesias <frasse.iglesias@gmail.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/nvram')
-rw-r--r--hw/nvram/xlnx-bbram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/nvram/xlnx-bbram.c b/hw/nvram/xlnx-bbram.c
index b70828e5bf..6ed32adad9 100644
--- a/hw/nvram/xlnx-bbram.c
+++ b/hw/nvram/xlnx-bbram.c
@@ -89,7 +89,7 @@ static bool bbram_pgm_enabled(XlnxBBRam *s)
static void bbram_bdrv_error(XlnxBBRam *s, int rc, gchar *detail)
{
- Error *errp;
+ Error *errp = NULL;
error_setg_errno(&errp, -rc, "%s: BBRAM backstore %s failed.",
blk_name(s->blk), detail);