From: Dan Carpenter Date: Wed, 13 Apr 2016 06:45:11 +0000 (+0300) Subject: ARM: qcom: silence an uninitialized variable warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=66b58edf592fd7a6fc0f106e0809e52b52d4722f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ARM: qcom: silence an uninitialized variable warning It's harmless but, if "enable" isn't set, then we pass uninitialized values to qcom_coincell_chgr_config(). The values aren't used, but let's silence the warning anyway. Signed-off-by: Dan Carpenter Acked-by: Tim Bird Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/misc/qcom-coincell.c b/drivers/misc/qcom-coincell.c index 7b4a2da487a5..829a61dbd65f 100644 --- a/drivers/misc/qcom-coincell.c +++ b/drivers/misc/qcom-coincell.c @@ -94,7 +94,8 @@ static int qcom_coincell_probe(struct platform_device *pdev) { struct device_node *node = pdev->dev.of_node; struct qcom_coincell chgr; - u32 rset, vset; + u32 rset = 0; + u32 vset = 0; bool enable; int rc;