Skip to content
Commit a598af7f authored by Dan Carpenter's avatar Dan Carpenter Committed by Chanwoo Choi
Browse files

extcon: Fix signedness bugs about break error handling



Unsigned is never less than zero so this error handling won't work.

Fixes: be052cc8 ('extcon: Fix hang and extcon_get/set_cable_state().')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarRoger Quadros <rogerq@ti.com>
[cw00.choi: Change the patch title and fix signedness bug of find_cable_index_by_id() ]
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
parent bef025a1
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