On 05/12/2015 23:48:07 CET, Christian Lamparter wrote:
        mtd=$(find_mtd_chardev $part)
        [ -n "$mtd" ] || \
-               ath9k_eeprom_die "no mtd device found for partition $part"
+               mtd="/dev/$(nand_find_volume $ubidev $part)"
+               [ -n "$mtd" ] || \
+                       ath9k_eeprom_die "no mtd device found for partition 
$part"

The new check will always return true, because $mtd will contain "/dev/" if
nand_find_volume cannot find the volume.
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to