diff options
author | Peng Li <lipeng321@huawei.com> | 2021-05-21 09:08:13 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-05-21 13:26:40 -0700 |
commit | 974221c6cf5441107c82f8c4c0b0694345d6c568 (patch) | |
tree | d05ea421488f8035163309fe2ee3a3a5805fac78 /drivers/net/wan/hd64572.c | |
parent | 4926257916496909154857d92413027915a30309 (diff) | |
download | linux-stable-974221c6cf5441107c82f8c4c0b0694345d6c568.tar.gz linux-stable-974221c6cf5441107c82f8c4c0b0694345d6c568.tar.bz2 linux-stable-974221c6cf5441107c82f8c4c0b0694345d6c568.zip |
net: wan: add some required spaces
Add space required after that close brace '}'.
Add space required before the open parenthesis '('.
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/hd64572.c')
-rw-r--r-- | drivers/net/wan/hd64572.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wan/hd64572.c b/drivers/net/wan/hd64572.c index e7d8653c4bde..e51d94d62e07 100644 --- a/drivers/net/wan/hd64572.c +++ b/drivers/net/wan/hd64572.c @@ -380,7 +380,7 @@ static void sca_set_port(port_t *port) /* Baud Rate = CLOCK_BASE / TMC / 2^BR */ tmc = CLOCK_BASE / brv / port->settings.clock_rate; - }while (br > 1 && tmc <= 128); + } while (br > 1 && tmc <= 128); if (tmc < 1) { tmc = 1; @@ -425,7 +425,7 @@ static void sca_open(struct net_device *dev) u16 msci = get_msci(port); u8 md0, md2; - switch(port->encoding) { + switch (port->encoding) { case ENCODING_NRZ: md2 = MD2_NRZ; break; case ENCODING_NRZI: md2 = MD2_NRZI; break; case ENCODING_FM_MARK: md2 = MD2_FM_MARK; break; @@ -436,7 +436,7 @@ static void sca_open(struct net_device *dev) if (port->settings.loopback) md2 |= MD2_LOOPBACK; - switch(port->parity) { + switch (port->parity) { case PARITY_CRC16_PR0: md0 = MD0_HDLC | MD0_CRC_16_0; break; case PARITY_CRC16_PR1: md0 = MD0_HDLC | MD0_CRC_16; break; case PARITY_CRC32_PR1_CCITT: md0 = MD0_HDLC | MD0_CRC_ITU32; break; |