mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
net: s2io: simplify logical constraint
(!A || (A && B)) is equivalent to (!A || B) Signed-off-by: Heinrich Schuchardt <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
8d546f58ec
commit
6d85a1bf4f
1 changed files with 1 additions and 1 deletions
|
|
@ -7412,7 +7412,7 @@ static int rx_osm_handler(struct ring_info *ring_data, struct RxD_t * rxdp)
|
|||
|
||||
if ((rxdp->Control_1 & TCP_OR_UDP_FRAME) &&
|
||||
((!ring_data->lro) ||
|
||||
(ring_data->lro && (!(rxdp->Control_1 & RXD_FRAME_IP_FRAG)))) &&
|
||||
(!(rxdp->Control_1 & RXD_FRAME_IP_FRAG))) &&
|
||||
(dev->features & NETIF_F_RXCSUM)) {
|
||||
l3_csum = RXD_GET_L3_CKSUM(rxdp->Control_1);
|
||||
l4_csum = RXD_GET_L4_CKSUM(rxdp->Control_1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue