diff options
author | Marek Vasut <marek.vasut+renesas@mailbox.org> | 2023-08-14 01:46:41 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-08-22 15:17:52 -0400 |
commit | 5ff4609f855b9851af572f0ba9b66e8a5837fd8c (patch) | |
tree | 367aed624d96d5868dea4babd9d98c81b5a8837f /lib/blake2/blake2-impl.h | |
parent | 5ebe790ff02eb21fe74e0f3992b3b2416c609d18 (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>
Diffstat (limited to 'lib/blake2/blake2-impl.h')
0 files changed, 0 insertions, 0 deletions