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

Commit 8eaf94c1 authored by Anil Kumar Mamidala's avatar Anil Kumar Mamidala
Browse files

msm: spm_devices: Initialize the local variable before using



Using the variable before initializing might cause unknown issues.
Initialize the variable before using it.

Change-Id: I4a139d1766daab44d714fa6cc50e26292f1805af
Signed-off-by: default avatarAnil Kumar Mamidala <amami@codeaurora.org>
parent 2741ea71
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2011-2015, The Linux Foundation. All rights reserved.
/* Copyright (c) 2011-2016, 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
@@ -238,7 +238,7 @@ static int msm_spm_dev_set_low_power_mode(struct msm_spm_device *dev,
{
	uint32_t i;
	int ret = -EINVAL;
	uint32_t ctl;
	uint32_t ctl = 0;

	if (!dev) {
		pr_err("dev is NULL\n");