Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5c629c14 authored by Jordan Crouse's avatar Jordan Crouse
Browse files

pm / devfreq: Fix uninitalized variable warning



drivers/devfreq/devfreq_qcom_fw.c: In function 'devfreq_qcom_fw_driver_probe':
drivers/devfreq/devfreq_qcom_fw.c:131:26: warning: 'prev_freq' may be used uninitialized in this function [-Wmaybe-uninitialized]

Fixes: 3c08d9b8 ("PM / devfreq: Add support for QCOM devfreq firmware")
Change-Id: Ic0dedbad700d71698cca311d5130b2ad1dd1412e
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent 363d3be9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
 */

#include <linux/err.h>
@@ -102,7 +102,7 @@ static int devfreq_qcom_populate_opp(struct platform_device *pdev)
{
	struct device *dev = &pdev->dev;
	u32 data, src, mult, i;
	unsigned long freq, prev_freq;
	unsigned long freq, prev_freq = 0;
	struct resource *res;
	void __iomem *ftbl_base;