summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChengguang Xu <cgxu519@gmx.com>2018-06-25 10:35:18 +0300
committerJohan Hovold <johan@kernel.org>2018-06-25 11:34:31 +0300
commit3391ca1dcd70a8e958984f7e95f242d36f0b9ab8 (patch)
tree46f126bb63af361216187d7b8540a7037adce9ce /lib
parent7daf201d7fe8334e2d2364d4e8ed3394ec9af819 (diff)
downloadlinux-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