aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Li <lipeng321@huawei.com>2021-06-10 15:20:05 +0800
committerDavid S. Miller <davem@davemloft.net>2021-06-10 13:50:43 -0700
commite0bd276463e874dfa572a9557c62f9a3d5bfcfd4 (patch)
tree0e62cf6af76538b2aca56359f9efea93a68c8cfd
parentnet: ixp4xx_hss: fix the comments style issue (diff)
downloadlinux-dev-e0bd276463e874dfa572a9557c62f9a3d5bfcfd4.tar.xz
linux-dev-e0bd276463e874dfa572a9557c62f9a3d5bfcfd4.zip
net: ixp4xx_hss: add braces {} to all arms of the statement
Braces {} should be used on all arms of this statement. Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/wan/ixp4xx_hss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wan/ixp4xx_hss.c b/drivers/net/wan/ixp4xx_hss.c
index 319ae509d1f4..e97521138f7e 100644
--- a/drivers/net/wan/ixp4xx_hss.c
+++ b/drivers/net/wan/ixp4xx_hss.c
@@ -1299,11 +1299,11 @@ static int hss_hdlc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
return -EINVAL;
port->clock_type = clk; /* Update settings */
- if (clk == CLOCK_INT)
+ if (clk == CLOCK_INT) {
find_best_clock(port->plat->timer_freq,
new_line.clock_rate,
&port->clock_rate, &port->clock_reg);
- else {
+ } else {
port->clock_rate = 0;
port->clock_reg = CLK42X_SPEED_2048KHZ;
}