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)
committerRISCi_ATOM <bob@bobcall.me>
Tue, 9 Jul 2024 16:17:11 +0000 (12:17 -0400)
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)

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"