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

net: ixp4xx_hss: 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 avatarDavid S. Miller <davem@davemloft.net>
parent 17ce9764
...@@ -1299,11 +1299,11 @@ static int hss_hdlc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ...@@ -1299,11 +1299,11 @@ static int hss_hdlc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
return -EINVAL; return -EINVAL;
port->clock_type = clk; /* Update settings */ port->clock_type = clk; /* Update settings */
if (clk == CLOCK_INT) if (clk == CLOCK_INT) {
find_best_clock(port->plat->timer_freq, find_best_clock(port->plat->timer_freq,
new_line.clock_rate, new_line.clock_rate,
&port->clock_rate, &port->clock_reg); &port->clock_rate, &port->clock_reg);
else { } else {
port->clock_rate = 0; port->clock_rate = 0;
port->clock_reg = CLK42X_SPEED_2048KHZ; port->clock_reg = CLK42X_SPEED_2048KHZ;
} }
......
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