]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
mediatek: mt7622: drop unused file_type variable 24531/head
authorSemih Baskan <strst.gs@gmail.com>
Mon, 3 Aug 2026 00:38:01 +0000 (03:38 +0300)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Fri, 14 Aug 2026 09:40:48 +0000 (11:40 +0200)
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 <strst.gs@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/24531
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh

index 8674339f06857d0e20d2e90265ff23c00e71b84e..812868976e64c577a35a8dd08babf794fcf15fd4 100755 (executable)
@@ -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|\