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

Commit fc3d3b0b authored by Channagoud Kadabi's avatar Channagoud Kadabi Committed by Runmin Wang
Browse files

drivers:soc: Fix uninitialized variable error



All warnings are treated as errors with CC_FOR_PERFORMANCE config
option. Fix usage of uninitialized variable.

Change-Id: I0f6b92c87b2d987243b9eb99f385a5378dbf8bfa
Signed-off-by: default avatarChannagoud Kadabi <ckadabi@codeaurora.org>
parent 9063c86a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
/* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -475,7 +475,7 @@ static int msm_gladiator_hang_detect_probe(struct platform_device *pdev)
	struct device_node *node = pdev->dev.of_node;
	struct hang_detect *hang_det = NULL;
	int i = 0, ret;
	u32 NR_GLA_REG;
	u32 NR_GLA_REG = 0;
	u32 *treg;
	u32 creg;