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>
platform_do_upgrade() {
local board=$(board_name)
- local file_type=$(identify $1)
case "$board" in
bananapi,bpi-r64|\