]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: phy: dp83867: Remove unneeded semicolon
authorZheng Bin <zhengbin13@huawei.com>
Fri, 24 Apr 2020 09:08:50 +0000 (17:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 26 Apr 2020 03:35:41 +0000 (20:35 -0700)
Fixes coccicheck warning:

drivers/net/phy/dp83867.c:368:2-3: Unneeded semicolon
drivers/net/phy/dp83867.c:403:2-3: Unneeded semicolon

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zheng Bin <zhengbin13@huawei.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/dp83867.c

index b55e3c0403edd28d682359c82a0445890730d6d0..4017ae1692d854f86f000cffc7f129a38d990eaa 100644 (file)
@@ -365,7 +365,7 @@ static int dp83867_get_downshift(struct phy_device *phydev, u8 *data)
                break;
        default:
                return -EINVAL;
-       };
+       }
 
        *data = enable ? count : DOWNSHIFT_DEV_DISABLE;
 
@@ -400,7 +400,7 @@ static int dp83867_set_downshift(struct phy_device *phydev, u8 cnt)
                        phydev_err(phydev,
                                   "Downshift count must be 1, 2, 4 or 8\n");
                        return -EINVAL;
-       };
+       }
 
        val = DP83867_DOWNSHIFT_EN;
        val |= FIELD_PREP(DP83867_DOWNSHIFT_ATTEMPT_MASK, count);