Skip to content
Snippets Groups Projects
Commit 6811d26d authored by Colin Ian King's avatar Colin Ian King Committed by Arnd Bergmann
Browse files

bus: moxtet: fix unsigned comparison to less than zero

Currently the size_t variable res is being checked for
an error failure however the unsigned variable is never
less than zero so this test is always false. Fix this by
making variable res ssize_t

Link: https://lore.kernel.org/r/20190822010351.15660-2-marek.behun@nic.cz


Addresses-Coverity: ("Unsigned compared against 0")
Fixes: 5bc7f990 ("bus: Add support for Moxtet bus")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarMarek Behún <marek.behun@nic.cz>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent caebdd3c
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment