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

Commit d24a02c0 authored by Avinash Philip's avatar Avinash Philip
Browse files

llcc_perfmon: Initialize variable before use



Initialize th variable before access.

Change-Id: I2e55c7ffe3fbbe9996072e62f34532b4b6d133ee
Signed-off-by: default avatarAvinash Philip <avinashp@codeaurora.org>
parent 74de7711
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
// SPDX-License-Identifier: GPL-2.0-only
/*
/*
 * Copyright (c) 2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
 */
 */


#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
@@ -889,7 +889,7 @@ static void beac_event_config(struct llcc_perfmon_private *llcc_priv,
		bool enable)
		bool enable)
{
{
	uint32_t val = 0, mask_val;
	uint32_t val = 0, mask_val;
	uint32_t valcfg = 0, mask_valcfg;
	uint32_t valcfg = 0, mask_valcfg = 0;
	unsigned int mc_cnt, offset;
	unsigned int mc_cnt, offset;
	struct llcc_perfmon_counter_map *counter_map;
	struct llcc_perfmon_counter_map *counter_map;