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

Commit 56a716f3 authored by Michael Adisumarta's avatar Michael Adisumarta
Browse files

msm: ipa: Initialize function default return type to 0



This fix makes sure to initialize the return type to 0.
This will make sure the effected functions always
return 0 or an error code.

Change-Id: I77ca49ca501d0d69d4d64eba90160819112adcdd
Acked-by: default avatarJyothi Jayanthi <jyothij@qti.qualcomm.com>
Signed-off-by: default avatarMichael Adisumarta <madisuma@codeaurora.org>
parent c29d9020
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -674,7 +674,7 @@ static irqreturn_t gsi_isr(int irq, void *ctxt)

static uint32_t gsi_get_max_channels(enum gsi_ver ver)
{
	uint32_t reg;
	uint32_t reg = 0;

	switch (ver) {
	case GSI_VER_ERR:
@@ -717,7 +717,7 @@ static uint32_t gsi_get_max_channels(enum gsi_ver ver)

static uint32_t gsi_get_max_event_rings(enum gsi_ver ver)
{
	uint32_t reg;
	uint32_t reg = 0;

	switch (ver) {
	case GSI_VER_ERR: