Skip to content

Commit

Permalink
xlnx-bbram: hw/nvram: Fix uninitialized Error *
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tong Ho authored and pm215 committed Apr 5, 2022
1 parent 20661b7 commit 2e9ce53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/nvram/xlnx-bbram.c
Expand Up @@ -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);
Expand Down

0 comments on commit 2e9ce53

Please sign in to comment.