From 19baf8d1a7f5ae26b04eba123aeff84da0754404 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 16 Jun 2024 12:51:47 +0100 Subject: [PATCH] roms: simplify mkUbootRom() remove variables that are not meaningfully used Signed-off-by: Leah Rowe --- script/roms | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/script/roms b/script/roms index 95d768e..c214d63 100755 --- a/script/roms +++ b/script/roms @@ -302,14 +302,9 @@ build_uboot_roms() # make a rom in /tmp/ and then print the path of that ROM mkUbootRom() { - _cbrom="$1" - _uboot_cbfs_path="$2" - - tmprom="$(mktemp -t coreboot_rom.XXXXXXXXXX)" - - x_ cp "$_cbrom" "$tmprom" - cbfs "$tmprom" "$ubootelf" "$_uboot_cbfs_path" - + tmprom="$(mktemp -t coreboot_rom.XXXXXXXXXX)" # 1=cbrom, 2=cbfs path + x_ cp "$1" "$tmprom" + cbfs "$tmprom" "$ubootelf" "$2" printf "%s\n" "$tmprom" }