Commit 66b58edf authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman

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: default avatarDan Carpenter <>
Acked-by: default avatarTim Bird <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 309124e2
......@@ -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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment