]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: atlantic: Remove unneeded semicolon
authorZheng Bin <zhengbin13@huawei.com>
Fri, 24 Apr 2020 09:04:28 +0000 (17:04 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Apr 2020 23:56:59 +0000 (16:56 -0700)
Fixes coccicheck warning:

drivers/net/ethernet/aquantia/atlantic/aq_macsec.c:404:2-3: Unneeded semicolon
drivers/net/ethernet/aquantia/atlantic/aq_macsec.c:420:2-3: Unneeded semicolon

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zheng Bin <zhengbin13@huawei.com>
Acked-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/aq_macsec.c

index 0b3e234a54aadaa0f0bee3383cc19a9ff549736e..91870ceaf3fe0a5b8eb442883929a2ee8517c3c6 100644 (file)
@@ -401,7 +401,7 @@ static u32 aq_sc_idx_max(const enum aq_macsec_sc_sa sc_sa)
                break;
        default:
                break;
-       };
+       }
 
        return result;
 }
@@ -417,7 +417,7 @@ static u32 aq_to_hw_sc_idx(const u32 sc_idx, const enum aq_macsec_sc_sa sc_sa)
                return sc_idx;
        default:
                WARN_ONCE(true, "Invalid sc_sa");
-       };
+       }
 
        return sc_idx;
 }