summaryrefslogtreecommitdiff
path: root/include/linux/compiler_attributes.h
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-06-16 17:29:13 +0100
committerCorey Minyard <cminyard@mvista.com>2021-06-21 19:50:36 -0500
commit5b32dd281ee0a269f39ecf6b48f0cd3f37264842 (patch)
tree68a0ac99eaf436be8f43844c91a75b033e186915 /include/linux/compiler_attributes.h
parentd0ec795c8c275ceca2076861f7fe3cc5f18da348 (diff)
ipmi: kcs_bmc_aspeed: Fix less than zero comparison of a unsigned int
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 <colin.king@canonical.com> Message-Id: <20210616162913.15259-1-colin.king@canonical.com> Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'include/linux/compiler_attributes.h')
0 files changed, 0 insertions, 0 deletions