diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-04-13 09:45:11 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-05-01 14:20:04 -0700 |
commit | 66b58edf592fd7a6fc0f106e0809e52b52d4722f (patch) | |
tree | 5b8ab64cccc244fa4e4b78429d95e499d202577c /drivers/misc/qcom-coincell.c | |
parent | 309124e2648d668a0c23539c5078815660a4a850 (diff) |
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>
Diffstat (limited to 'drivers/misc/qcom-coincell.c')
-rw-r--r-- | drivers/misc/qcom-coincell.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |