]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: wan: add spaces required around that ':' and '+'
authorPeng Li <lipeng321@huawei.com>
Tue, 25 May 2021 14:07:58 +0000 (22:07 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 May 2021 22:41:54 +0000 (15:41 -0700)
This patch adds spaces required around that ':' and '+'.

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>
drivers/net/wan/n2.c

index 76ef808c27697bebb4550b1c82d5d69e533d01ad..bdb6dc2409bcdbaf33ed76b7bc1d13ca0bcb1223 100644 (file)
@@ -195,7 +195,8 @@ static int n2_open(struct net_device *dev)
 {
        port_t *port = dev_to_port(dev);
        int io = port->card->io;
-       u8 mcr = inb(io + N2_MCR) | (port->phy_node ? TX422_PORT1:TX422_PORT0);
+       u8 mcr = inb(io + N2_MCR) |
+               (port->phy_node ? TX422_PORT1 : TX422_PORT0);
        int result;
 
        result = hdlc_open(dev);
@@ -216,7 +217,8 @@ static int n2_close(struct net_device *dev)
 {
        port_t *port = dev_to_port(dev);
        int io = port->card->io;
-       u8 mcr = inb(io+N2_MCR) | (port->phy_node ? TX422_PORT1 : TX422_PORT0);
+       u8 mcr = inb(io + N2_MCR) |
+               (port->phy_node ? TX422_PORT1 : TX422_PORT0);
 
        sca_close(dev);
        mcr |= port->phy_node ? DTR_PORT1 : DTR_PORT0; /* set DTR OFF */