octeontx2-af: Remove unneeded semicolons
authorXu Wang <vulab@iscas.ac.cn>
Tue, 19 Jan 2021 07:50:59 +0000 (07:50 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 20 Jan 2021 01:50:03 +0000 (17:50 -0800)
fix semicolon.cocci warnings:
./drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c:272:2-3: Unneeded semicolon
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c:1788:3-4: Unneeded semicolon
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c:1809:3-4: Unneeded semicolon
drivers/net/ethernet/marvell/octeontx2/af/rvu.c:1326:2-3: Unneeded semicolon

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Link: https://lore.kernel.org/r/20210119075059.17493-1-vulab@iscas.ac.cn
Link: https://lore.kernel.org/r/20210119075507.17699-1-vulab@iscas.ac.cn
Link: https://lore.kernel.org/r/20210119080037.17931-1-vulab@iscas.ac.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c

index e8fd712..0b6bf9f 100644 (file)
@@ -1323,7 +1323,7 @@ static int rvu_get_attach_blkaddr(struct rvu *rvu, int blktype,
                break;
        default:
                return rvu_get_blkaddr(rvu, blktype, 0);
-       };
+       }
 
        if (is_block_implemented(rvu->hw, blkaddr))
                return blkaddr;
index 0c6882e..f604995 100644 (file)
@@ -1786,7 +1786,7 @@ static void rvu_dbg_npc_mcam_show_action(struct seq_file *s,
                        break;
                default:
                        break;
-               };
+               }
        } else {
                switch (rule->rx_action.op) {
                case NIX_RX_ACTIONOP_DROP:
@@ -1807,7 +1807,7 @@ static void rvu_dbg_npc_mcam_show_action(struct seq_file *s,
                        break;
                default:
                        break;
-               };
+               }
        }
 }
 
index 7572321..4ba9d54 100644 (file)
@@ -274,7 +274,7 @@ static void npc_scan_parse_result(struct npc_mcam *mcam, u8 bit_number,
                break;
        default:
                return;
-       };
+       }
        npc_set_kw_masks(mcam, type, nr_bits, kwi, offset, intf);
 }