Skip to content

Commit a5ec651

Browse files
Colin Ian Kingdavem330
authored andcommitted
net: hns3: remove unused macros
The macros HCLGE_MPF_ENBALE and HCLGEVF_MPF_ENBALE are defined but never used. I was going to fix the spelling mistake "ENBALE" -> "ENABLE" but found these macros are not used, so they can be removed. Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 3b7ad08 commit a5ec651

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,6 @@ enum hclge_evt_cause {
225225
HCLGE_VECTOR0_EVENT_OTHER,
226226
};
227227

228-
#define HCLGE_MPF_ENBALE 1
229-
230228
enum HCLGE_MAC_SPEED {
231229
HCLGE_MAC_SPEED_UNKNOWN = 0, /* unknown */
232230
HCLGE_MAC_SPEED_10M = 10, /* 10 Mbps */

drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,6 @@ enum hclgevf_states {
150150
HCLGEVF_STATE_CMD_DISABLE,
151151
};
152152

153-
#define HCLGEVF_MPF_ENBALE 1
154-
155153
struct hclgevf_mac {
156154
u8 media_type;
157155
u8 module_type;

0 commit comments

Comments
 (0)