]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
extcon: Fix compile time warning
authorManinder Singh <maninder1.s@samsung.com>
Mon, 1 Aug 2016 09:21:30 +0000 (14:51 +0530)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 8 Aug 2016 01:58:37 +0000 (10:58 +0900)
commit2c8116a1110a93f298b10339d773fb055a0c04d7
tree052f7588c2212036ff16f899748780ae814dcac8
parent912465bcf869660900cf77c4761869048f3ff063
extcon: Fix compile time warning

This patch fixes below compilation warning:-
drivers/extcon/extcon.c: In function extcon_register_notifier:
drivers/extcon/extcon.c:455:6: warning: idx may be used uninitialized in this function [-Wmaybe-uninitialized]
   if (idx >= 0) {

Signed-off-by: Vaneet Narang <v.narang@samsung.com>
Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
[cw00.choi : Modify the patch title using the a captical letter for first char]
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon.c