diff options
author | Chengguang Xu <[email protected]> | 2018-06-25 15:35:18 +0800 |
---|---|---|
committer | Johan Hovold <[email protected]> | 2018-06-25 10:34:31 +0200 |
commit | 3391ca1dcd70a8e958984f7e95f242d36f0b9ab8 (patch) | |
tree | 46f126bb63af361216187d7b8540a7037adce9ce /tools/perf/util/trace-event-scripting.c | |
parent | 7daf201d7fe8334e2d2364d4e8ed3394ec9af819 (diff) |
USB: serial: cast sizeof() to int when comparing with error code
Negative error code will be larger than sizeof().
Note that none of these bugs prevent errors from being detected, even if
the ir-usb one would cause a less precise debug message to printed.
Signed-off-by: Chengguang Xu <[email protected]>
[ johan: add comment about implications ]
Signed-off-by: Johan Hovold <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions