base-files: minor fix to mmc_get_mac_ascii function
authorRodrigo Balerdi <lanchon@gmail.com>
Sat, 6 Apr 2024 06:18:00 +0000 (03:18 -0300)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 7 Apr 2024 19:06:11 +0000 (20:06 +0100)
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>
package/base-files/files/lib/functions/system.sh

index 107e67835a2b14006d60bc122b5f22457fb72724..23484c8ad916b449159dd51aaf4736fdf8f1989f 100644 (file)
@@ -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"