summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodrigo Balerdi2024-04-06 06:18:00 +0000
committerRafał Miłecki2024-07-02 07:05:52 +0000
commit9988f8adf806e84104376ad123aa38c72a01e372 (patch)
treea8aa4daf8af8a0c68d6c2088c4b2965aae22a11f
parent4058d0e99060ed944895707a8b55c30f279e0e72 (diff)
downloadopenwrt-9988f8adf806e84104376ad123aa38c72a01e372.tar.gz
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> (cherry picked from commit 8cf4ac5195476356a14678ae72897e563881b15e)
-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"