Commit 148604e7 authored by Alex Elder's avatar Alex Elder Committed by Jakub Kicinski
Browse files

net: ipa: heed napi_complete() return value



Pay attention to the return value of napi_complete(), completing
polling only if it returns true.

Just use napi rather than &channel->napi as the argument passed to
napi_complete().

Signed-off-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent c80c4a1e
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1555,10 +1555,8 @@ static int gsi_channel_poll(struct napi_struct *napi, int budget)
		gsi_trans_complete(trans);
	}

	if (count < budget) {
		napi_complete(&channel->napi);
	if (count < budget && napi_complete(napi))
		gsi_irq_ieob_enable(channel->gsi, channel->evt_ring_id);
	}

	return count;
}