mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-27 05:20:50 +00:00
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>
This commit is contained in:
parent
20661b75ea
commit
2e9ce53200
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user