net: mana: Remove unnecessary check of cqe_type in mana_process_rx_cqe()
The switch statement already ensures cqe_type == CQE_RX_OKAY at that point. Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Reviewed-by: Dexuan Cui <decui@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e4b7621982
commit
68f8313550
@ -1104,9 +1104,6 @@ static void mana_process_rx_cqe(struct mana_rxq *rxq, struct mana_cq *cq,
|
||||
return;
|
||||
}
|
||||
|
||||
if (oob->cqe_hdr.cqe_type != CQE_RX_OKAY)
|
||||
return;
|
||||
|
||||
pktlen = oob->ppi[0].pkt_len;
|
||||
|
||||
if (pktlen == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user