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

Commit 1ab77760 authored by Sudarshan Rajagopalan's avatar Sudarshan Rajagopalan Committed by Gerrit - the friendly Code Review server
Browse files

msm: msm_bus: Use appropriate data type



In function bimc_div(), an int64 variable is compared with
uint32 type, which leads to the below warning:
	warning: comparison of distinct pointer types lacks a cast
Use appropriate data type to avoid such warning.

Change-Id: I79f9f39c34b333f20eb55879116e25e507e6c145
Signed-off-by: default avatarSudarshan Rajagopalan <sudaraja@codeaurora.org>
parent 130b5c4c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
/* Copyright (c) 2014-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
@@ -242,7 +242,7 @@ enum bimc_m_bke_health_3 {
	(M_BKE_GC_GC_BMSK >> \
	(M_BKE_GC_GC_SHFT + 1))

static int bimc_div(int64_t *a, uint32_t b)
static int bimc_div(uint64_t *a, uint32_t b)
{
	if ((*a > 0) && (*a < b)) {
		*a = 0;