projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17ce976
)
net: ixp4xx_hss: add braces {} to all arms of the statement
author
Peng Li
<lipeng321@huawei.com>
Thu, 10 Jun 2021 07:20:05 +0000
(15:20 +0800)
committer
David S. Miller
<davem@davemloft.net>
Thu, 10 Jun 2021 20:50:43 +0000
(13:50 -0700)
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>
drivers/net/wan/ixp4xx_hss.c
patch
|
blob
|
history
diff --git
a/drivers/net/wan/ixp4xx_hss.c
b/drivers/net/wan/ixp4xx_hss.c
index 319ae509d1f4a8841a190b3f66d2d06159088921..e97521138f7e9222bab186c8285671ffd82c8c33 100644
(file)
--- 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;
}