summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/8390/pcnet_cs.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2020-08-24 21:56:13 -0700
committerDavid S. Miller <davem@davemloft.net>2020-08-25 07:54:19 -0700
commite7fee115bf2cc418cc607a01bb62678eb8c720e9 (patch)
tree0346659125d643aa57c0fa14a64a657bb1700c2e /drivers/net/ethernet/8390/pcnet_cs.c
parent343d8c6014db5b3397b3eedcb845fdd361c7e665 (diff)
downloadlwn-e7fee115bf2cc418cc607a01bb62678eb8c720e9.tar.gz
lwn-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/pcnet_cs.c')
-rw-r--r--drivers/net/ethernet/8390/pcnet_cs.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/ethernet/8390/pcnet_cs.c b/drivers/net/ethernet/8390/pcnet_cs.c
index 645efac6310d..c383f16889f4 100644
--- a/drivers/net/ethernet/8390/pcnet_cs.c
+++ b/drivers/net/ethernet/8390/pcnet_cs.c
@@ -1178,8 +1178,10 @@ static void dma_block_input(struct net_device *dev, int count,
outb_p(E8390_RREAD+E8390_START, nic_base + PCNET_CMD);
insw(nic_base + PCNET_DATAPORT,buf,count>>1);
- if (count & 0x01)
- buf[count-1] = inb(nic_base + PCNET_DATAPORT), xfer_count++;
+ if (count & 0x01) {
+ buf[count-1] = inb(nic_base + PCNET_DATAPORT);
+ xfer_count++;
+ }
/* This was for the ALPHA version only, but enough people have been
encountering problems that it is still here. */