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

Commit e0365a51 authored by Jordan Crouse's avatar Jordan Crouse
Browse files

msm: sps: Fix two uninitialized variable compiler warnings



 drivers/platform/msm/sps/sps_rm.c:233:27: error:
   'data_iova' may be used uninitialized in this function [-Werror=maybe-uninitialized]

Change-Id: Ic0dedbad0eeeac6113327c20b47d954591c1418b
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent c47bfd52
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2011-2015, 2017-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2011-2015, 2017-2019, The Linux Foundation. All rights reserved.
 */
/* Resource management for the SPS device driver. */

@@ -168,8 +168,8 @@ static int sps_rm_assign(struct sps_pipe *pipe,
			 struct sps_connection *map)
{
	struct sps_connect *cfg = &pipe->connect;
	unsigned long desc_iova;
	unsigned long data_iova;
	unsigned long desc_iova = 0;
	unsigned long data_iova = 0;

	/* Check ownership and BAM */
	if ((cfg->mode == SPS_MODE_SRC && map->client_src != NULL) ||