From 6f648ed7e639060902df1d652fedd176f4aa9f98 Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Sat, 5 Jun 2021 23:54:37 +0200 Subject: treewide: remove "+" sign for increment with macaddr_add Many people appear to use an unneeded "+" prefix for the increment when calculating a MAC address with macaddr_add. Since this is not required and used inconsistently [*], just remove it. [*] As a funny side-fact, copy-pasting has led to almost all hotplug.d files using the "+", while nearly all of the 02_network files are not using it. Signed-off-by: Adrian Schmutzler --- .../ath79/mikrotik/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'target/linux/ath79/mikrotik/base-files/etc/hotplug.d/firmware') diff --git a/target/linux/ath79/mikrotik/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom b/target/linux/ath79/mikrotik/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom index 7ef6fdbe0f..d9425d4437 100644 --- a/target/linux/ath79/mikrotik/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom +++ b/target/linux/ath79/mikrotik/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom @@ -26,10 +26,10 @@ case "$FIRMWARE" in mikrotik,routerboard-lhg-2nd|\ mikrotik,routerboard-sxt-5nd-r2|\ mikrotik,routerboard-wapr-2nd) - caldata_mikrotik_ath9k 0x1000 0x440 $(macaddr_add "$mac_base" +1) + caldata_mikrotik_ath9k 0x1000 0x440 $(macaddr_add "$mac_base" 1) ;; mikrotik,routerboard-wap-g-5hact2hnd) - caldata_mikrotik_ath9k 0x1000 0x440 $(macaddr_add "$mac_base" +2) + caldata_mikrotik_ath9k 0x1000 0x440 $(macaddr_add "$mac_base" 2) ;; *) caldata_die "board $board is not supported yet" -- cgit v1.2.3