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

Commit 9ac533c8 authored by Jeff Hugo's avatar Jeff Hugo Committed by Gerrit - the friendly Code Review server
Browse files

msm: smd: Return standard error code macro



Current kernel coding conventions prefer standard error code macros be
used as return values for error conditions.  smd_packet_write() does not
conform to this convention in all scenarios.

Correct smd_packet_write() to conform to this convention in all scenarios.

Change-Id: I6e58abe2e16d7f425df5623b8ea1e7202a0c6d3d
Signed-off-by: default avatarJeffrey Hugo <jhugo@codeaurora.org>
parent 33197d65
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1495,7 +1495,7 @@ static int smd_packet_write(smd_channel_t *ch, const void *_data, int len,
	if (ret < 0 || ret != sizeof(hdr)) {
		SMD_DBG("%s failed to write pkt header: %d returned\n",
								__func__, ret);
		return -1;
		return -EFAULT;
	}