Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <dan.carpenter@oracle.com>
Acked-by: Tim Bird <tim.bird@sonymobile.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Dan Carpenter and committed by
Greg Kroah-Hartman
66b58edf 309124e2

+2 -1
+2 -1
drivers/misc/qcom-coincell.c
··· 94 94 { 95 95 struct device_node *node = pdev->dev.of_node; 96 96 struct qcom_coincell chgr; 97 - u32 rset, vset; 97 + u32 rset = 0; 98 + u32 vset = 0; 98 99 bool enable; 99 100 int rc; 100 101