From: Colin King <hidden> Date: 2021-06-16 16:29:35
From: Colin Ian King <redacted>
The comparisons of the unsigned int hw_type to less than zero always
false because it is unsigned. Fix this by using an int for the
assignment and less than zero check.
Addresses-Coverity: ("Unsigned compared against 0")
Fixes: 9d2df9a0ad80 ("ipmi: kcs_bmc_aspeed: Implement KCS SerIRQ configuration")
Signed-off-by: Colin Ian King <redacted>
---
drivers/char/ipmi/kcs_bmc_aspeed.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
On Wed, Jun 16, 2021 at 05:29:13PM +0100, Colin King wrote:
From: Colin Ian King <redacted>
The comparisons of the unsigned int hw_type to less than zero always
false because it is unsigned. Fix this by using an int for the
assignment and less than zero check.
Thanks, I added this to my tree.
-corey
quoted hunk
Addresses-Coverity: ("Unsigned compared against 0")
Fixes: 9d2df9a0ad80 ("ipmi: kcs_bmc_aspeed: Implement KCS SerIRQ configuration")
Signed-off-by: Colin Ian King <redacted>
---
drivers/char/ipmi/kcs_bmc_aspeed.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
From: Andrew Jeffery <hidden> Date: 2021-06-16 23:04:03
On Thu, 17 Jun 2021, at 01:59, Colin King wrote:
From: Colin Ian King <redacted>
The comparisons of the unsigned int hw_type to less than zero always
false because it is unsigned. Fix this by using an int for the
assignment and less than zero check.
Addresses-Coverity: ("Unsigned compared against 0")
Fixes: 9d2df9a0ad80 ("ipmi: kcs_bmc_aspeed: Implement KCS SerIRQ configuration")
Signed-off-by: Colin Ian King <redacted>