]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
extcon: Fix signedness bugs about break error handling
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 4 Aug 2015 07:47:23 +0000 (10:47 +0300)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 10 Aug 2015 02:48:57 +0000 (11:48 +0900)
commita598af7f0279195abffbfb9bf2070457e9c89ff3
treef2ebc9053cd17f5e5618ac898bd751c80c7e6c65
parentbef025a1f8e0e566f954613f4e5087f6b156e2a5
extcon: Fix signedness bugs about break error handling

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

Fixes: be052cc87745 ('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>
drivers/extcon/extcon.c