Re: [PATCH] scsi: aacraid: rcode is unsigned, so can never be less than zero

2017-02-07 Thread Colin Ian King
On 07/02/17 11:37, Dan Carpenter wrote: > On Tue, Feb 07, 2017 at 11:27:38AM +, Colin King wrote: >> From: Colin Ian King >> >> The check on rcode >= 0 is always true because rcode is unsigned >> and can never be less than zero. Remove the redundant check. >> >> Signed-off-by: Colin Ian King

Re: [PATCH] scsi: aacraid: rcode is unsigned, so can never be less than zero

2017-02-07 Thread Dan Carpenter
On Tue, Feb 07, 2017 at 11:27:38AM +, Colin King wrote: > From: Colin Ian King > > The check on rcode >= 0 is always true because rcode is unsigned > and can never be less than zero. Remove the redundant check. > > Signed-off-by: Colin Ian King > --- > drivers/scsi/aacraid/aachba.c | 2 +-

[PATCH] scsi: aacraid: rcode is unsigned, so can never be less than zero

2017-02-07 Thread Colin King
From: Colin Ian King The check on rcode >= 0 is always true because rcode is unsigned and can never be less than zero. Remove the redundant check. Signed-off-by: Colin Ian King --- drivers/scsi/aacraid/aachba.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/a