[openwrt/openwrt] treewide: remove empty default cases
LEDE Commits
lede-commits at lists.infradead.org
Thu Sep 17 06:47:10 EDT 2020
adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/0b1cdb7eea1a2d53da2e97eaaa4ac27b518f8171
commit 0b1cdb7eea1a2d53da2e97eaaa4ac27b518f8171
Author: Adrian Schmutzler <freifunk at adrianschmutzler.de>
AuthorDate: Thu Sep 17 12:46:19 2020 +0200
treewide: remove empty default cases
There is no apparent reason to have an empty default case.
Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
---
target/linux/apm821xx/base-files/etc/board.d/01_leds | 2 --
.../linux/apm821xx/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac | 2 --
target/linux/apm821xx/base-files/lib/preinit/79_move_config | 2 --
target/linux/apm821xx/base-files/lib/upgrade/platform.sh | 3 ---
target/linux/ipq40xx/base-files/etc/board.d/01_leds | 2 --
.../ipq40xx/base-files/lib/preinit/06_set_preinit_iface_ipq40xx.sh | 2 --
target/linux/ipq806x/base-files/etc/board.d/01_leds | 2 --
tools/missing-macros/Makefile | 2 +-
tools/missing-macros/src/m4/mfx_limits.m4 | 2 --
9 files changed, 1 insertion(+), 18 deletions(-)
diff --git a/target/linux/apm821xx/base-files/etc/board.d/01_leds b/target/linux/apm821xx/base-files/etc/board.d/01_leds
index 57598c0ca9..8433490825 100755
--- a/target/linux/apm821xx/base-files/etc/board.d/01_leds
+++ b/target/linux/apm821xx/base-files/etc/board.d/01_leds
@@ -44,8 +44,6 @@ netgear,wndr4700)
ucidef_set_led_netdev "wan_yellow" "WAN (yellow)" "wndr4700:yellow:wan" "eth0.2" "tx rx"
;;
-*)
- ;;
esac
board_config_flush
diff --git a/target/linux/apm821xx/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac b/target/linux/apm821xx/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac
index a78a1054f1..6c7748589c 100644
--- a/target/linux/apm821xx/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac
+++ b/target/linux/apm821xx/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac
@@ -16,6 +16,4 @@ netgear,wndap620|\
netgear,wndap660)
macaddr_add $(mtd_get_mac_ascii u-boot-env baseMAC) $(($PHYNBR + 1)) > /sys${DEVPATH}/macaddress
;;
-*)
- ;;
esac
diff --git a/target/linux/apm821xx/base-files/lib/preinit/79_move_config b/target/linux/apm821xx/base-files/lib/preinit/79_move_config
index 1796e9f5f4..7a301a9253 100644
--- a/target/linux/apm821xx/base-files/lib/preinit/79_move_config
+++ b/target/linux/apm821xx/base-files/lib/preinit/79_move_config
@@ -12,8 +12,6 @@ move_config() {
[ -f "/boot/$BACKUP_FILE" ] && mv -f "/boot/$BACKUP_FILE" /
fi
;;
- *)
- ;;
esac
}
diff --git a/target/linux/apm821xx/base-files/lib/upgrade/platform.sh b/target/linux/apm821xx/base-files/lib/upgrade/platform.sh
index cc095b36a1..cdcab6c3f6 100644
--- a/target/linux/apm821xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/apm821xx/base-files/lib/upgrade/platform.sh
@@ -43,8 +43,5 @@ platform_copy_config() {
wd,mybooklive-duo)
mbl_copy_config
;;
-
- *)
- ;;
esac
}
diff --git a/target/linux/ipq40xx/base-files/etc/board.d/01_leds b/target/linux/ipq40xx/base-files/etc/board.d/01_leds
index 313722ffb0..e8e67af3a9 100755
--- a/target/linux/ipq40xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ipq40xx/base-files/etc/board.d/01_leds
@@ -71,8 +71,6 @@ zyxel,wre6606)
ucidef_set_led_wlan "wlan2g" "WLAN2G" "${boardname}:green:wlan2g" "phy0tpt"
ucidef_set_led_wlan "wlan5g" "WLAN5G" "${boardname}:green:wlan5g" "phy1tpt"
;;
-*)
- ;;
esac
board_config_flush
diff --git a/target/linux/ipq40xx/base-files/lib/preinit/06_set_preinit_iface_ipq40xx.sh b/target/linux/ipq40xx/base-files/lib/preinit/06_set_preinit_iface_ipq40xx.sh
index 50c289df31..f94116de6e 100644
--- a/target/linux/ipq40xx/base-files/lib/preinit/06_set_preinit_iface_ipq40xx.sh
+++ b/target/linux/ipq40xx/base-files/lib/preinit/06_set_preinit_iface_ipq40xx.sh
@@ -12,8 +12,6 @@ set_preinit_iface() {
zyxel,nbg6617)
ifname=eth0
;;
- *)
- ;;
esac
}
diff --git a/target/linux/ipq806x/base-files/etc/board.d/01_leds b/target/linux/ipq806x/base-files/etc/board.d/01_leds
index ffefb9e01c..620fc12f41 100755
--- a/target/linux/ipq806x/base-files/etc/board.d/01_leds
+++ b/target/linux/ipq806x/base-files/etc/board.d/01_leds
@@ -53,8 +53,6 @@ tplink,vr2600v)
zyxel,nbg6817)
ucidef_set_led_netdev "wan" "WAN" "${boardname}:white:internet" "eth1"
;;
-*)
- ;;
esac
board_config_flush
diff --git a/tools/missing-macros/Makefile b/tools/missing-macros/Makefile
index 3d3ee4cbef..1e423621bd 100644
--- a/tools/missing-macros/Makefile
+++ b/tools/missing-macros/Makefile
@@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=missing-macros
-PKG_RELEASE:=10
+PKG_RELEASE:=11
include $(INCLUDE_DIR)/host-build.mk
diff --git a/tools/missing-macros/src/m4/mfx_limits.m4 b/tools/missing-macros/src/m4/mfx_limits.m4
index d63a14bb96..b4e3ceba8f 100644
--- a/tools/missing-macros/src/m4/mfx_limits.m4
+++ b/tools/missing-macros/src/m4/mfx_limits.m4
@@ -147,8 +147,6 @@ case $host_os in
cygwin* | mingw* | pw32*)
test "X$LIBS" != "X" && LIBS="$LIBS "
LIBS="${LIBS}-lwinmm" ;;
-*)
- ;;
esac
fi
])#
More information about the lede-commits
mailing list