projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0a963e
)
net: cosa: add braces {} to all arms of the statement
author
Peng Li
<lipeng321@huawei.com>
Wed, 16 Jun 2021 07:23:33 +0000
(15:23 +0800)
committer
David S. Miller
<davem@davemloft.net>
Wed, 16 Jun 2021 07:52:33 +0000
(
00:52
-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/cosa.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/wan/cosa.c
b/drivers/net/wan/cosa.c
index c09c0790249500c739cf2708a65a0c3a685cf8dd..b3dab61f176ff1d4f23c52fdd197240cc9a9c653 100644
(file)
--- a/
drivers/net/wan/cosa.c
+++ b/
drivers/net/wan/cosa.c
@@
-468,11
+468,11
@@
static int cosa_probe(int base, int irq, int dma)
}
/* Test the validity of identification string */
- if (!strncmp(cosa->id_string, "SRP", 3))
+ if (!strncmp(cosa->id_string, "SRP", 3))
{
cosa->type = "srp";
- else if (!strncmp(cosa->id_string, "COSA", 4))
+ } else if (!strncmp(cosa->id_string, "COSA", 4)) {
cosa->type = is_8bit(cosa)? "cosa8": "cosa16";
- else {
+
}
else {
/* Print a warning only if we are not autoprobing */
#ifndef COSA_ISA_AUTOPROBE
pr_info("valid signature not found at 0x%x\n", base);