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

net: cosa: 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 c0a963e2
......@@ -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);
......
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