Skip to contentSkip to conversation

hinic: Fix spelling mistake "fliter" -> "filter"

PATCH New Colin Ian King 1 participant 1 message Nov 8, 2022

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hinic: Fix spelling mistake "fliter" -> "filter"

There is a function name and a dev_err message containing a spelling mistake. Fix them.

---
 drivers/net/ethernet/huawei/hinic/hinic_main.c | 2 +-
 drivers/net/ethernet/huawei/hinic/hinic_port.c | 4 ++--
 drivers/net/ethernet/huawei/hinic/hinic_port.h | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
drivers/net/ethernet/huawei/hinic/hinic_main.c +1 -1
index 977c41473ab7..db82fe4736a6 100644
@@ -1093,7 +1093,7 @@ static int set_features(struct hinic_dev *nic_dev,
 	}
 
 	if (changed & NETIF_F_HW_VLAN_CTAG_FILTER) {
-		ret = hinic_set_vlan_fliter(nic_dev,
+		ret = hinic_set_vlan_filter(nic_dev,
 					    !!(features &
 					       NETIF_F_HW_VLAN_CTAG_FILTER));
 		if (ret) {
drivers/net/ethernet/huawei/hinic/hinic_port.c +2 -2
index 9406237c461e..0ab72069e377 100644
@@ -447,7 +447,7 @@ int hinic_set_rx_vlan_offload(struct hinic_dev *nic_dev, u8 en)
 	return 0;
 }
 
-int hinic_set_vlan_fliter(struct hinic_dev *nic_dev, u32 en)
+int hinic_set_vlan_filter(struct hinic_dev *nic_dev, u32 en)
 {
 	struct hinic_hwdev *hwdev = nic_dev->hwdev;
 	struct hinic_hwif *hwif = hwdev->hwif;
@@ -472,7 +472,7 @@ int hinic_set_vlan_fliter(struct hinic_dev *nic_dev, u32 en)
 		err = HINIC_MGMT_CMD_UNSUPPORTED;
 	} else if (err || !out_size || vlan_filter.status) {
 		dev_err(&pdev->dev,
-			"Failed to set vlan fliter, err: %d, status: 0x%x, out size: 0x%x\n",
+			"Failed to set vlan filter, err: %d, status: 0x%x, out size: 0x%x\n",
 			err, vlan_filter.status, out_size);
 		err = -EINVAL;
 	}
drivers/net/ethernet/huawei/hinic/hinic_port.h +1 -1
index c8694ac7c702..1b2e45c704d5 100644
@@ -841,7 +841,7 @@ int hinic_get_vport_stats(struct hinic_dev *nic_dev,
 
 int hinic_set_rx_vlan_offload(struct hinic_dev *nic_dev, u8 en);
 
-int hinic_set_vlan_fliter(struct hinic_dev *nic_dev, u32 en);
+int hinic_set_vlan_filter(struct hinic_dev *nic_dev, u32 en);
 
 int hinic_get_mgmt_version(struct hinic_dev *nic_dev, u8 *mgmt_ver);
 
Signature · 1 line
2.38.1