summaryrefslogtreecommitdiffstats
path: root/drivers/net/wan/hd64570.c
diff options
context:
space:
mode:
authorPeng Li <lipeng321@huawei.com>2021-06-05 09:00:23 +0200
committerDavid S. Miller <davem@davemloft.net>2021-06-07 21:25:21 +0200
commitd364c0a93ac66325ad841b6be49e277d7c15af0c (patch)
treea71ec06723c70bf31a26d67f860826de13dcf197 /drivers/net/wan/hd64570.c
parentnet: hd64570: remove redundant blank lines (diff)
downloadlinux-d364c0a93ac66325ad841b6be49e277d7c15af0c.tar.xz
linux-d364c0a93ac66325ad841b6be49e277d7c15af0c.zip
net: hd64570: add blank line after declarations
This patch fixes the checkpatch error about missing a blank line after declarations. 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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wan/hd64570.c b/drivers/net/wan/hd64570.c
index e0266c687e19..cca6101d68d3 100644
--- a/drivers/net/wan/hd64570.c
+++ b/drivers/net/wan/hd64570.c
@@ -345,6 +345,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)))
break; /* Transmitter is/will_be sending this frame */
@@ -371,6 +372,7 @@ static irqreturn_t sca_intr(int irq, void* dev_id)
handled = 1;
for (i = 0; i < 2; i++) {
port_t *port = get_port(card, i);
+
if (port) {
if (stat & SCA_INTR_MSCI(i))
sca_msci_intr(port);