]> git.baikalelectronics.ru Git - kernel.git/commit
extcon: Fix compile time warning
authorManinder Singh <maninder1.s@samsung.com>
Mon, 1 Aug 2016 09:21:30 +0000 (14:51 +0530)
committerKishon Vijay Abraham I <kishon@ti.com>
Sat, 10 Sep 2016 11:18:50 +0000 (16:48 +0530)
commit8b58b22a0667a889cdb956ae5e6ce696ff7433b3
tree30189a873faa93f5d1b3d5daad6d798c5987abcc
parent2499308a6fdb69e127bf4bde4a094833731a440e
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