Re: [PATCH] USB: serial: iuu_phoenix: remove redundant variable 'error'

2021-04-01 Thread Johan Hovold
On Sat, Mar 27, 2021 at 11:27:44PM +, Colin King wrote: > From: Colin Ian King > > The variable error is initialized to 0 and is set to 1 this > value is never read as it is on an immediate return path. The > only read of error is to check it is 0 and this check is always > true at that

[PATCH] USB: serial: iuu_phoenix: remove redundant variable 'error'

2021-03-27 Thread Colin King
From: Colin Ian King The variable error is initialized to 0 and is set to 1 this value is never read as it is on an immediate return path. The only read of error is to check it is 0 and this check is always true at that point of the code. The variable is redundant and can be removed.