Re: [PATCH][next] soundwire: qcom: Fix a u8 comparison with less than zero

2021-03-31 Thread Bjorn Andersson
On Wed 31 Mar 09:09 CDT 2021, Colin King wrote: > From: Colin Ian King > > Variable devnum is being checked for a less than zero error return > however the comparison will always be false because devnum is an 8 bit > unsigned integer. Fix this by making devnum an int. Also there is no > need

[PATCH][next] soundwire: qcom: Fix a u8 comparison with less than zero

2021-03-31 Thread Colin King
From: Colin Ian King Variable devnum is being checked for a less than zero error return however the comparison will always be false because devnum is an 8 bit unsigned integer. Fix this by making devnum an int. Also there is no need to iniitialize devnum with zero as this value is no read, so