Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3391ca1d authored by Chengguang Xu's avatar Chengguang Xu Committed by Johan Hovold
Browse files

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: default avatarChengguang Xu <cgxu519@gmx.com>
[ johan: add comment about implications ]
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent 7daf201d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment