[openwrt/openwrt] rockchip: remove useless echo in 40-net-smp-affinity

LEDE Commits lede-commits at lists.infradead.org
Mon Aug 17 17:21:50 EDT 2020


adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/84fc80dd668a053c84b1431e5a98995abb0710ea

commit 84fc80dd668a053c84b1431e5a98995abb0710ea
Author: Adrian Schmutzler <freifunk at adrianschmutzler.de>
AuthorDate: Mon Aug 17 23:13:57 2020 +0200

    rockchip: remove useless echo in 40-net-smp-affinity
    
    The command in the $() brackets will already provide the same output.
    
    Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
---
 .../rockchip/armv8/base-files/etc/hotplug.d/net/40-net-smp-affinity     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/rockchip/armv8/base-files/etc/hotplug.d/net/40-net-smp-affinity b/target/linux/rockchip/armv8/base-files/etc/hotplug.d/net/40-net-smp-affinity
index ab3f954654..44716258bf 100644
--- a/target/linux/rockchip/armv8/base-files/etc/hotplug.d/net/40-net-smp-affinity
+++ b/target/linux/rockchip/armv8/base-files/etc/hotplug.d/net/40-net-smp-affinity
@@ -6,7 +6,7 @@ get_device_irq() {
 	local device="$1"
 
 	local line=$(grep -m 1 "${device}\$" /proc/interrupts)
-	echo $(echo ${line} | sed 's/:.*//')
+	echo ${line} | sed 's/:.*//'
 }
 
 set_interface_core() {



More information about the lede-commits mailing list