From: Peng Li Date: Sat, 5 Jun 2021 07:00:28 +0000 (+0800) Subject: net: hd64570: remove redundant parentheses X-Git-Tag: accepted/tizen/unified/20230118.172025~6942^2~330^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cb625e9c5d48e4a717653febaac6e32bda8a63f5;p=platform%2Fkernel%2Flinux-rpi.git net: hd64570: remove redundant parentheses Remove redundant parentheses around 'cda >= desc_off'. Signed-off-by: Peng Li Signed-off-by: Guangbin Huang Signed-off-by: David S. Miller --- diff --git a/drivers/net/wan/hd64570.c b/drivers/net/wan/hd64570.c index c6605ea..8af647c 100644 --- a/drivers/net/wan/hd64570.c +++ b/drivers/net/wan/hd64570.c @@ -301,7 +301,7 @@ static inline void sca_rx_intr(port_t *port) pkt_desc __iomem *desc; u32 cda = sca_inw(dmac + CDAL, card); - if ((cda >= desc_off) && (cda < desc_off + sizeof(pkt_desc))) + if (cda >= desc_off && (cda < desc_off + sizeof(pkt_desc))) break; /* No frame received */ desc = desc_address(port, port->rxin, 0); @@ -354,7 +354,7 @@ static inline void sca_tx_intr(port_t *port) u32 desc_off = desc_offset(port, port->txlast, 1); u32 cda = sca_inw(dmac + CDAL, card); - if ((cda >= desc_off) && (cda < desc_off + sizeof(pkt_desc))) + if (cda >= desc_off && (cda < desc_off + sizeof(pkt_desc))) break; /* Transmitter is/will_be sending this frame */ desc = desc_address(port, port->txlast, 1);