From: Axel Lin Date: Fri, 24 May 2013 17:41:44 +0000 (+0800) Subject: generic-adc-battery: Fix checking if none of the channels are supported X-Git-Tag: v3.11-rc1~52^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d211c6e82435dfa4ae9f4d80bb2ee75930bde5d4;p=pandora-kernel.git generic-adc-battery: Fix checking if none of the channels are supported If none of the channels are supported, index is 0. Also ensure to return error code instead of 0 in goto second_mem_fail path. Signed-off-by: Axel Lin Acked-by: anish kumar Signed-off-by: Anton Vorontsov --- Reading git-diff-tree failed