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

Commit 4c344c1c authored by Karthik Parsha's avatar Karthik Parsha Committed by Mahesh Sivasubramanian
Browse files

qcom: rpm-smd: Fix the storage variable data type



The data that returned from smd API smd_cur_packet_size() is of the type
int. The returned value is stored in a variable pkt_sz. Declare the
variable to be of type int.

Change-Id: I1aecd007f97ed151af1b9bb9ef246e9786b3fb31
Signed-off-by: default avatarKarthik Parsha <kparsha@codeaurora.org>
parent acaa86a0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -852,7 +852,7 @@ static inline int msm_rpm_get_error_from_ack(uint8_t *buf)

static int msm_rpm_read_smd_data(char *buf)
{
	uint32_t pkt_sz;
	int pkt_sz;
	int bytes_read = 0;

	pkt_sz = smd_cur_packet_size(msm_rpm_data.ch_info);