rockchip: remove useless echo in 40-net-smp-affinity
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 17 Aug 2020 21:13:57 +0000 (23:13 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 17 Aug 2020 21:13:57 +0000 (23:13 +0200)
The command in the $() brackets will already provide the same output.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/rockchip/armv8/base-files/etc/hotplug.d/net/40-net-smp-affinity

index ab3f9546543e2bfa8456b4d6dd8b770d18a73ce0..44716258bf2d37a8929d53300093ee3ddc4103ec 100644 (file)
@@ -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() {