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

Commit fa6a5e3e authored by Sujeev Dias's avatar Sujeev Dias
Browse files

mhi: dev: netdev: since there is no clean up, return immediately



If mhi_poll fails, return immediately instead of branching to a
goto statement since no clean up required.

CRs-Fixed: 2361266
Change-Id: I7d3349a4678fd87c2b73dd83c7dfcba0b7d30e0f
Signed-off-by: default avatarSujeev Dias <sdias@codeaurora.org>
parent fa5b5e56
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -362,9 +362,8 @@ static int mhi_netdev_poll(struct napi_struct *napi, int budget)

	if (rx_work < 0) {
		MSG_ERR("Error polling ret:%d\n", rx_work);
		rx_work = 0;
		napi_complete(napi);
		goto exit_poll;
		return 0;
	}

	/* queue new buffers */
@@ -374,8 +373,6 @@ static int mhi_netdev_poll(struct napi_struct *napi, int budget)
	if (rx_work < budget)
		napi_complete(napi);

exit_poll:

	MSG_VERB("polled %d pkts\n", rx_work);

	return rx_work;