diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-04-13 08:45:11 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-05-01 23:20:04 +0200 |
commit | 66b58edf592fd7a6fc0f106e0809e52b52d4722f (patch) | |
tree | 5b8ab64cccc244fa4e4b78429d95e499d202577c /drivers/misc/qcom-coincell.c | |
parent | char: Drop bogus dependency of DEVPORT on !M68K (diff) | |
download | linux-66b58edf592fd7a6fc0f106e0809e52b52d4722f.tar.xz linux-66b58edf592fd7a6fc0f106e0809e52b52d4722f.zip |
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; |