summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-04-13 15:53:36 +0100
committerLeah Rowe <leah@libreboot.org>2025-04-13 15:53:36 +0100
commit8b4b069e3f6abcdf9582f5a8fd7e14fb44c07ec3 (patch)
treecc2f68adfd36e8d29a0ee5e3b3cbeadce545e046 /include
parent166dbb04c9250e44da40faec6ac294966377781e (diff)
vendor.sh: remove unnecessary xchanged="y"
in these if clauses, what follows afterward is exactly the same: set xchanged and return. Therefore, these lines are redundant and they can be removed. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rw-r--r--include/vendor.sh4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/vendor.sh b/include/vendor.sh
index eadbfbeb..3204654b 100644
--- a/include/vendor.sh
+++ b/include/vendor.sh
@@ -626,12 +626,8 @@ inject()
$err "failed: inject '$_t' '$_dest' on '$rom'"
[ "$nukemode" != "nuke" ] || "$ifdtool" $ifdprefix --nuke $_t \
"$rom" -O "$rom" || $err "$rom: !nuke IFD/$_t"
- xchanged="y"
- return 0
elif [ "$nukemode" = "nuke" ]; then
x_ "$cbfstool" "$rom" remove -n "$cbfsname"
- xchanged="y"
- return 0
elif [ "$_t" = "stage" ]; then # the only stage we handle is refcode
x_ mkdir -p tmp
x_ rm -f "tmp/refcode"