diff options
author | Peng Li <lipeng321@huawei.com> | 2021-06-05 15:00:28 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-07 12:25:21 -0700 |
commit | cb625e9c5d48e4a717653febaac6e32bda8a63f5 (patch) | |
tree | 8d6e9bc41577034bebacd53ada997eb44de77e97 /drivers/net/wan/hd64570.c | |
parent | 53da5342c51a6cfe10e760629cf94ae382a0d02b (diff) | |
download | linux-stable-cb625e9c5d48e4a717653febaac6e32bda8a63f5.tar.gz linux-stable-cb625e9c5d48e4a717653febaac6e32bda8a63f5.tar.bz2 linux-stable-cb625e9c5d48e4a717653febaac6e32bda8a63f5.zip |
net: hd64570: remove redundant parentheses
Remove redundant parentheses around 'cda >= desc_off'.
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan/hd64570.c')
-rw-r--r-- | drivers/net/wan/hd64570.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wan/hd64570.c b/drivers/net/wan/hd64570.c index c6605ea6c50c..8af647c7b0c5 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); |