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

Commit a2ec250a authored by Sujeev Dias's avatar Sujeev Dias Committed by Gerrit - the friendly Code Review server
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 284e4ca4
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -353,9 +353,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 */
@@ -365,8 +364,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;