extcon: max77693: Fix uninitialised variable warning
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 21 Nov 2012 04:34:57 +0000 (10:04 +0530)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 21 Nov 2012 11:06:38 +0000 (20:06 +0900)
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
drivers/extcon/extcon-max77693.c

index 93ca93f26f4f6d5d80eeab32155089f020e632f4..8bf5e4835b4c21a1cf6f2d5dd64534b319429f0e 100644 (file)
@@ -672,9 +672,10 @@ static int __devinit max77693_muic_probe(struct platform_device *pdev)
                                                info->max77693->muic,
                                                &max77693_muic_regmap_config);
                if (IS_ERR(info->max77693->regmap_muic)) {
+                       ret = PTR_ERR(info->max77693->regmap_muic);
                        dev_err(max77693->dev,
                                "failed to allocate register map: %d\n", ret);
-                       return PTR_ERR(info->max77693->regmap_muic);
+                       return ret;
                }
        }
        platform_set_drvdata(pdev, info);
This page took 0.026428 seconds and 5 git commands to generate.