diff options
author | Peng Li <lipeng321@huawei.com> | 2021-05-24 17:47:17 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-05-25 00:07:39 +0300 |
commit | d1406175f96869b653ee1071266a78cb8c70ab80 (patch) | |
tree | 628a97eb477a84e5e462a0b795237e912cbea73b | |
parent | 80d67b95d1fe3aa629efb453f57dea935e304421 (diff) | |
download | linux-d1406175f96869b653ee1071266a78cb8c70ab80.tar.xz |
net: wan: add braces {} to all arms of the statement
Braces {} should be used on all arms of this statement.
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>
-rw-r--r-- | drivers/net/wan/wanxl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wan/wanxl.c b/drivers/net/wan/wanxl.c index 18de5f1bb0ed..f22e48415e6f 100644 --- a/drivers/net/wan/wanxl.c +++ b/drivers/net/wan/wanxl.c @@ -210,18 +210,18 @@ static inline void wanxl_rx_intr(struct card *card) while (desc = &card->status->rx_descs[card->rx_in], desc->stat != PACKET_EMPTY) { - if ((desc->stat & PACKET_PORT_MASK) > card->n_ports) + if ((desc->stat & PACKET_PORT_MASK) > card->n_ports) { pr_crit("%s: received packet for nonexistent port\n", pci_name(card->pdev)); - else { + } else { struct sk_buff *skb = card->rx_skbs[card->rx_in]; struct port *port = &card->ports[desc->stat & PACKET_PORT_MASK]; struct net_device *dev = port->dev; - if (!skb) + if (!skb) { dev->stats.rx_dropped++; - else { + } else { dma_unmap_single(&card->pdev->dev, desc->address, BUFFER_LENGTH, DMA_FROM_DEVICE); |