From 8b4b069e3f6abcdf9582f5a8fd7e14fb44c07ec3 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 13 Apr 2025 15:53:36 +0100 Subject: 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 --- include/vendor.sh | 4 ---- 1 file changed, 4 deletions(-) (limited to 'include') 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" -- cgit v1.2.1