mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06: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
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ static bool bbram_pgm_enabled(XlnxBBRam *s)
|
||||||
|
|
||||||
static void bbram_bdrv_error(XlnxBBRam *s, int rc, gchar *detail)
|
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.",
|
error_setg_errno(&errp, -rc, "%s: BBRAM backstore %s failed.",
|
||||||
blk_name(s->blk), detail);
|
blk_name(s->blk), detail);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue