Преглед изворни кода

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 <[email protected]>
Rodrigo Balerdi пре 1 година
родитељ
комит
8cf4ac5195
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      package/base-files/files/lib/functions/system.sh

+ 1 - 0
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"