commit | 544d713f64288d77ae79aa207b5280fa61a25c65 | [log] [tgz] |
---|---|---|
author | Marek Vasut <marek.vasut+renesas@mailbox.org> | Mon Aug 14 01:46:41 2023 +0200 |
committer | Tom Rini <trini@konsulko.com> | Tue Aug 22 15:17:52 2023 -0400 |
tree | 367aed624d96d5868dea4babd9d98c81b5a8837f | |
parent | 795f0d798cf796e2f6321fe697f52ef7239f5fef [diff] |
disk: Drop always true conditional check 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>