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:
parent
9072333883
commit
71e752b934
|
@ -2056,7 +2056,6 @@ int main(int argc, char **argv)
|
||||||
int c;
|
int c;
|
||||||
int retval = 0;
|
int retval = 0;
|
||||||
char *tmp;
|
char *tmp;
|
||||||
char *rom = NULL;
|
|
||||||
embedded_firmware *amd_romsig;
|
embedded_firmware *amd_romsig;
|
||||||
psp_directory_table *pspdir = NULL;
|
psp_directory_table *pspdir = NULL;
|
||||||
psp_directory_table *pspdir2 = NULL;
|
psp_directory_table *pspdir2 = NULL;
|
||||||
|
@ -2641,6 +2640,6 @@ int main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
free(rom);
|
free(ctx.rom);
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue