aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLi Zetao <[email protected]>2023-08-03 22:20:53 +0800
committerGreg Kroah-Hartman <[email protected]>2023-08-04 15:08:15 +0200
commitb58168698c6e462ef02c49b14989d8c9175fbfc8 (patch)
treea7a96dcac233d2d6f1f3dc22753b90cfa7461c76 /tools/perf/scripts/python
parent4b37932f7830cdd9dcfeb84163557705f0a7c90f (diff)
8250_men_mcb: Fix unsigned expression compared with zero
There is a warning reported by coccinelle: ./drivers/tty/serial/8250/8250_men_mcb.c:226:6-19: WARNING: Unsigned expression compared with zero: data -> line [ i ] < 0 The array "line" of serial_8250_men_mcb_data is used to record the registered serial port. When register a port failed, it will return an error code, but the type of "line" is "unsigned int", causing the error code to reverse. Modify the type of "data -> line" to solve this problem. Fixes: 2554e6ba28a2 ("8250_men_mcb: Read num ports from register data.") Signed-off-by: Li Zetao <[email protected]> Reviewed-by: Jiri Slaby <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions