net: cosa: 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: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Peng Li 2021-06-16 15:23:33 +08:00 committed by David S. Miller
parent c0a963e25d
commit c8f4b11727

View File

@ -468,11 +468,11 @@ static int cosa_probe(int base, int irq, int dma)
} }
/* Test the validity of identification string */ /* Test the validity of identification string */
if (!strncmp(cosa->id_string, "SRP", 3)) if (!strncmp(cosa->id_string, "SRP", 3)) {
cosa->type = "srp"; 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"; cosa->type = is_8bit(cosa)? "cosa8": "cosa16";
else { } else {
/* Print a warning only if we are not autoprobing */ /* Print a warning only if we are not autoprobing */
#ifndef COSA_ISA_AUTOPROBE #ifndef COSA_ISA_AUTOPROBE
pr_info("valid signature not found at 0x%x\n", base); pr_info("valid signature not found at 0x%x\n", base);