mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
5ff4609f85
if (device_get_uclass_id(dev) == UCLASS_PARTITION) is always true, because this disk_blk_read() function calls dev_get_blk() above and checks its return value for non-NULL. The dev_get_blk() performs the same device_get_uclass_id(dev) check and returns NULL if not UCLASS_PARTITION. Drop the duplicate check. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> |
||
---|---|---|
.. | ||
disk-uclass.c | ||
Kconfig | ||
Makefile | ||
part.c | ||
part_amiga.c | ||
part_amiga.h | ||
part_dos.c | ||
part_dos.h | ||
part_efi.c | ||
part_iso.c | ||
part_iso.h | ||
part_mac.c | ||
part_mac.h |