diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-01-30 16:11:44 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-02-08 13:56:11 +0100 |
commit | dedab7f0d3137441a97fe7cf9b9ca5dbd20ca9a5 (patch) | |
tree | 54e976a81e05f1231af1d3b4ff33dd8340acf0e9 /drivers/thermal/gov_bang_bang.c | |
parent | powerpc/64s: Fix may_hard_irq_enable() for PMI soft masking (diff) | |
download | linux-dedab7f0d3137441a97fe7cf9b9ca5dbd20ca9a5.tar.xz linux-dedab7f0d3137441a97fe7cf9b9ca5dbd20ca9a5.zip |
ocxl: fix signed comparison with less than zero
Currently the comparison of used < 0 is always false because
uses is a size_t. Fix this by making used a ssize_t type.
Detected by Coccinelle:
drivers/misc/ocxl/file.c:320:6-10: WARNING: Unsigned expression
compared with zero: used < 0
Fixes: 5ef3166e8a32 ("ocxl: Driver code for 'generic' opencapi devices")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Acked-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/thermal/gov_bang_bang.c')
0 files changed, 0 insertions, 0 deletions