summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorRodrigo Balerdi <lanchon@gmail.com>2024-04-06 03:18:00 -0300
committerDaniel Golle <daniel@makrotopia.org>2024-04-07 20:06:11 +0100
commit8cf4ac5195476356a14678ae72897e563881b15e (patch)
treebe3dd7b253ba82a422c49d3a0cb39afee8c1291a /package
parent507b0286d9e5a06fc50fcad6e1b38f373f4beb13 (diff)
downloadopenwrt-8cf4ac5195476356a14678ae72897e563881b15e.tar.gz
openwrt-8cf4ac5195476356a14678ae72897e563881b15e.tar.bz2
openwrt-8cf4ac5195476356a14678ae72897e563881b15e.zip
base-files: minor fix to mmc_get_mac_ascii function
This is mostly a cosmetic cleanup. The absence of the return statement was not causing any problems. Signed-off-by: Rodrigo Balerdi <lanchon@gmail.com>
Diffstat (limited to 'package')
-rw-r--r--package/base-files/files/lib/functions/system.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/base-files/files/lib/functions/system.sh b/package/base-files/files/lib/functions/system.sh
index 107e67835a..23484c8ad9 100644
--- a/package/base-files/files/lib/functions/system.sh
+++ b/package/base-files/files/lib/functions/system.sh
@@ -205,6 +205,7 @@ mmc_get_mac_ascii() {
part=$(find_mmc_part "$part_name")
if [ -z "$part" ]; then
echo "mmc_get_mac_ascii: partition $part_name not found!" >&2
+ return
fi
get_mac_ascii "$part" "$key"