diff options
author | Joe Perches <joe@perches.com> | 2020-08-25 06:56:13 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-08-25 16:54:19 +0200 |
commit | e7fee115bf2cc418cc607a01bb62678eb8c720e9 (patch) | |
tree | 0346659125d643aa57c0fa14a64a657bb1700c2e /drivers/net/ethernet/8390/lib8390.c | |
parent | net: clean up codestyle for net/ipv4 (diff) | |
download | linux-e7fee115bf2cc418cc607a01bb62678eb8c720e9.tar.xz linux-e7fee115bf2cc418cc607a01bb62678eb8c720e9.zip |
8390: Avoid comma separated statements
Use semicolons and braces.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/8390/lib8390.c')
-rw-r--r-- | drivers/net/ethernet/8390/lib8390.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/net/ethernet/8390/lib8390.c b/drivers/net/ethernet/8390/lib8390.c index babc92e2692e..1f48d7f6365c 100644 --- a/drivers/net/ethernet/8390/lib8390.c +++ b/drivers/net/ethernet/8390/lib8390.c @@ -597,10 +597,12 @@ static void ei_tx_intr(struct net_device *dev) ei_local->txing = 1; NS8390_trigger_send(dev, ei_local->tx2, ei_local->tx_start_page + 6); netif_trans_update(dev); - ei_local->tx2 = -1, + ei_local->tx2 = -1; ei_local->lasttx = 2; - } else - ei_local->lasttx = 20, ei_local->txing = 0; + } else { + ei_local->lasttx = 20; + ei_local->txing = 0; + } } else if (ei_local->tx2 < 0) { if (ei_local->lasttx != 2 && ei_local->lasttx != -2) pr_err("%s: bogus last_tx_buffer %d, tx2=%d\n", @@ -612,8 +614,10 @@ static void ei_tx_intr(struct net_device *dev) netif_trans_update(dev); ei_local->tx1 = -1; ei_local->lasttx = 1; - } else - ei_local->lasttx = 10, ei_local->txing = 0; + } else { + ei_local->lasttx = 10; + ei_local->txing = 0; + } } /* else netdev_warn(dev, "unexpected TX-done interrupt, lasttx=%d\n", ei_local->lasttx); |