diff options
author | Chengguang Xu <cgxu519@gmx.com> | 2018-06-25 10:35:18 +0300 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2018-06-25 11:34:31 +0300 |
commit | 3391ca1dcd70a8e958984f7e95f242d36f0b9ab8 (patch) | |
tree | 46f126bb63af361216187d7b8540a7037adce9ce /lib | |
parent | 7daf201d7fe8334e2d2364d4e8ed3394ec9af819 (diff) | |
download | linux-3391ca1dcd70a8e958984f7e95f242d36f0b9ab8.tar.xz |
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 <cgxu519@gmx.com>
[ johan: add comment about implications ]
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions