projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
145efe6
)
net: wan: add braces {} to all arms of the statement
author
Peng Li
<lipeng321@huawei.com>
Fri, 21 May 2021 01:08:16 +0000
(09:08 +0800)
committer
David S. Miller
<davem@davemloft.net>
Fri, 21 May 2021 20:26:41 +0000
(13:26 -0700)
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>
drivers/net/wan/hd64572.c
patch
|
blob
|
history
diff --git
a/drivers/net/wan/hd64572.c
b/drivers/net/wan/hd64572.c
index
34acea9
..
7fccf23
100644
(file)
--- a/
drivers/net/wan/hd64572.c
+++ b/
drivers/net/wan/hd64572.c
@@
-374,8
+374,9
@@
static void sca_set_port(port_t *port)
tmc = 1;
br = 0; /* For baud=CLOCK_BASE we use tmc=1 br=0 */
brv = 1;
- } else if (tmc > 255)
+ } else if (tmc > 255)
{
tmc = 256; /* tmc=0 means 256 - low baud rates */
+ }
port->settings.clock_rate = CLOCK_BASE / brv / tmc;
} else {