max17042_battery: Fix missing verify_model_lock() return value check
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Sun, 18 Nov 2012 22:59:47 +0000 (14:59 -0800)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Sun, 18 Nov 2012 22:59:47 +0000 (14:59 -0800)
commita879f19fe7decb9a53d13a63edd2eced8c2895a2
treecdd8722a6cd84aa7d27d79aded0da18552c97865
parent8511748ba1ab83a7d89d802a50335115358a8cfc
max17042_battery: Fix missing verify_model_lock() return value check

The second error check is unreachable because the lock function isn't
assigned to ret.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Acked-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
drivers/power/max17042_battery.c