[OpenWrt-Devel] [PATCH v6 5/6] ar71xx: scan nand ubi partition for ath9k eeprom files

Vittorio G (VittGam) openwrt at vittgam.net
Mon Dec 7 00:56:00 EST 2015


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
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list