Unsigned is never less than zero so this error handling won't work.
Fixes: be052cc877
('extcon: Fix hang and extcon_get/set_cable_state().')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Roger Quadros <rogerq@ti.com>
[cw00.choi: Change the patch title and fix signedness bug of find_cable_index_by_id() ]
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
tirimbino
parent
bef025a1f8
commit
a598af7f02
Loading…
Reference in new issue