Skip to content

Commit a8f5c98

Browse files
LiHuiSong1joyxu
authored andcommitted
soc: hisilicon: kunpeng_hccs: Remove unused input parameter
The 'hdev' parameter of hccs_create_hccs_dir() is unused. Remove it to fix the compiler warning. Signed-off-by: Huisong Li <lihuisong@huawei.com> Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
1 parent 3caf4aa commit a8f5c98

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

drivers/soc/hisilicon/kunpeng_hccs.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1621,8 +1621,7 @@ static void hccs_remove_topo_dirs(struct hccs_dev *hdev)
16211621
hccs_remove_misc_sysfs(hdev);
16221622
}
16231623

1624-
static int hccs_create_hccs_dir(struct hccs_dev *hdev,
1625-
struct hccs_die_info *die,
1624+
static int hccs_create_hccs_dir(struct hccs_die_info *die,
16261625
struct hccs_port_info *port)
16271626
{
16281627
int ret;
@@ -1654,7 +1653,7 @@ static int hccs_create_die_dir(struct hccs_dev *hdev,
16541653

16551654
for (i = 0; i < die->port_num; i++) {
16561655
port = &die->ports[i];
1657-
ret = hccs_create_hccs_dir(hdev, die, port);
1656+
ret = hccs_create_hccs_dir(die, port);
16581657
if (ret) {
16591658
dev_err(hdev->dev, "create hccs%u dir failed.\n",
16601659
port->port_id);

0 commit comments

Comments
 (0)