Commit 1bf705d4 authored by Peng Li's avatar Peng Li Committed by David S. Miller

net: wan: add braces {} to all arms of the statement

Braces {} should be used on all arms of this statement.
Signed-off-by: default avatarPeng Li <lipeng321@huawei.com>
Signed-off-by: default avatarGuangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 145efe6c
...@@ -374,8 +374,9 @@ static void sca_set_port(port_t *port) ...@@ -374,8 +374,9 @@ static void sca_set_port(port_t *port)
tmc = 1; tmc = 1;
br = 0; /* For baud=CLOCK_BASE we use tmc=1 br=0 */ br = 0; /* For baud=CLOCK_BASE we use tmc=1 br=0 */
brv = 1; brv = 1;
} else if (tmc > 255) } else if (tmc > 255) {
tmc = 256; /* tmc=0 means 256 - low baud rates */ tmc = 256; /* tmc=0 means 256 - low baud rates */
}
port->settings.clock_rate = CLOCK_BASE / brv / tmc; port->settings.clock_rate = CLOCK_BASE / brv / tmc;
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment