From: Semih Baskan Date: Mon, 3 Aug 2026 00:38:01 +0000 (+0300) Subject: mediatek: mt7622: drop unused file_type variable X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F24531%2Fhead;p=thirdparty%2Fopenwrt.git mediatek: mt7622: drop unused file_type variable platform_do_upgrade() assigns file_type and never reads it. The call also uses the argument order from before 715634e6d144, so it returns "unknown" rather than the real type and would mislead anyone who started using it. No functional change. Signed-off-by: Semih Baskan Link: https://github.com/openwrt/openwrt/pull/24531 Signed-off-by: Jonas Jelonek --- diff --git a/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh b/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh index 8674339f068..812868976e6 100755 --- a/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh +++ b/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh @@ -3,7 +3,6 @@ RAMFS_COPY_BIN='fitblk fit_check_sign' platform_do_upgrade() { local board=$(board_name) - local file_type=$(identify $1) case "$board" in bananapi,bpi-r64|\