[openwrt/openwrt] base-files: minor fix to mmc_get_mac_ascii function
LEDE Commits
lede-commits at lists.infradead.org
Sun Apr 7 12:07:08 PDT 2024
dangole pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/8cf4ac5195476356a14678ae72897e563881b15e
commit 8cf4ac5195476356a14678ae72897e563881b15e
Author: Rodrigo Balerdi <lanchon at gmail.com>
AuthorDate: Sat Apr 6 03:18:00 2024 -0300
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 at gmail.com>
---
package/base-files/files/lib/functions/system.sh | 1 +
1 file changed, 1 insertion(+)
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"
More information about the lede-commits
mailing list