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

Commit 36f7a166 authored by Hemant Kumar's avatar Hemant Kumar
Browse files

bus: mhi: Remove break statement from mhi_process_cmd_completion



mhi_process_cmd_completion API is using if/else statement. This API
on a newer kernel branch is using switch case statement. Due to
automatic propagation break statement got copied. Remove break
statement and use goto.

Change-Id: I1fad42ef95d4e63829d819327c38b3c80f852872
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent dd5078ef
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1113,7 +1113,7 @@ static void mhi_process_cmd_completion(struct mhi_controller *mhi_cntrl,
		chan = MHI_TRE_GET_CMD_CHID(cmd_pkt);
		if (chan >= mhi_cntrl->max_chan) {
			MHI_ERR("invalid channel id %u\n", chan);
			break;
			goto del_ring_el;
		}
		mhi_chan = &mhi_cntrl->mhi_chan[chan];
		write_lock_bh(&mhi_chan->lock);
@@ -1122,6 +1122,7 @@ static void mhi_process_cmd_completion(struct mhi_controller *mhi_cntrl,
		write_unlock_bh(&mhi_chan->lock);
	}

del_ring_el:
	mhi_del_ring_element(mhi_cntrl, mhi_ring);
}