diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2021-06-05 23:54:37 +0200 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2021-06-05 23:54:37 +0200 |
commit | 6f648ed7e639060902df1d652fedd176f4aa9f98 (patch) | |
tree | 5203335af1cc9b13aad966a65b8d9a668c73b983 /target/linux/lantiq/xway | |
parent | 4a9f389ed2dcee18a5c5e1f0d4e5c406f9290579 (diff) | |
download | upstream-6f648ed7e639060902df1d652fedd176f4aa9f98.tar.gz upstream-6f648ed7e639060902df1d652fedd176f4aa9f98.tar.bz2 upstream-6f648ed7e639060902df1d652fedd176f4aa9f98.zip |
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 <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/lantiq/xway')
-rw-r--r-- | target/linux/lantiq/xway/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/lantiq/xway/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom b/target/linux/lantiq/xway/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom index 9aea4eed64..98bb9af694 100644 --- a/target/linux/lantiq/xway/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom +++ b/target/linux/lantiq/xway/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom @@ -39,11 +39,11 @@ case "$FIRMWARE" in ;; bt,homehub-v3a) caldata_extract_swap "art-copy" 0x0 0x1000 - ath9k_patch_mac_crc $(macaddr_add $(mtd_get_mac_ascii u-boot-env ethaddr) +2) 0x10c + ath9k_patch_mac_crc $(macaddr_add $(mtd_get_mac_ascii u-boot-env ethaddr) 2) 0x10c ;; netgear,dgn3500|netgear,dgn3500b) caldata_extract "calibration" 0xf000 0x1000 - ath9k_patch_mac_crc $(macaddr_add $(mtd_get_mac_ascii u-boot-env ethaddr) +2) 0x20c + ath9k_patch_mac_crc $(macaddr_add $(mtd_get_mac_ascii u-boot-env ethaddr) 2) 0x20c ;; avm,fritz7312|avm,fritz7320) caldata_extract "urlader" 0x985 0x1000 |