amdfwtool: Remove the useless variable "rom"

Now we use ctx.rom. Remove the wrong statement releasing null
pointer.

Change-Id: I134335ed741dc067e232621106f2057e50ba6a1a
Signed-off-by: Zheng Bao <fishbaozi@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/73118
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
This commit is contained in:
Zheng Bao 2023-02-19 10:52:43 +08:00 committed by Fred Reitberger
parent 9072333883
commit 71e752b934
1 changed files with 1 additions and 2 deletions

View File

@ -2056,7 +2056,6 @@ int main(int argc, char **argv)
int c;
int retval = 0;
char *tmp;
char *rom = NULL;
embedded_firmware *amd_romsig;
psp_directory_table *pspdir = NULL;
psp_directory_table *pspdir2 = NULL;
@ -2641,6 +2640,6 @@ int main(int argc, char **argv)
}
}
free(rom);
free(ctx.rom);
return retval;
}