Re: [PATCH][next] bus: moxtet: fix unsigned comparison to less than zero

2019-08-17 Thread Dan Carpenter
On Sat, Aug 17, 2019 at 02:04:34AM +0200, Marek Behun wrote: > On Fri, 16 Aug 2019 23:41:06 +0100 > Colin King wrote: > > > From: Colin Ian King > > > > Currently the size_t variable res is being checked for > > an error failure however the unsigned variable is never > > less than zero so this

Re: [PATCH][next] bus: moxtet: fix unsigned comparison to less than zero

2019-08-16 Thread Marek Behun
On Fri, 16 Aug 2019 23:41:06 +0100 Colin King wrote: > From: Colin Ian King > > 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 > > Addresse

[PATCH][next] bus: moxtet: fix unsigned comparison to less than zero

2019-08-16 Thread Colin King
From: Colin Ian King 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 Addresses-Coverity: ("Unsigned compared against 0") Fixes: 5bc7f990cd98 ("bus: