From 8d3e35e7636259151b30473f5f8d2b4c6bba5509 Mon Sep 17 00:00:00 2001 From: Semih Baskan Date: Mon, 3 Aug 2026 03:38:01 +0300 Subject: [PATCH] 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 --- target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh | 1 - 1 file changed, 1 deletion(-) 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|\ -- 2.47.3