mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
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>
This commit is contained in:
@@ -1621,8 +1621,7 @@ static void hccs_remove_topo_dirs(struct hccs_dev *hdev)
|
||||
hccs_remove_misc_sysfs(hdev);
|
||||
}
|
||||
|
||||
static int hccs_create_hccs_dir(struct hccs_dev *hdev,
|
||||
struct hccs_die_info *die,
|
||||
static int hccs_create_hccs_dir(struct hccs_die_info *die,
|
||||
struct hccs_port_info *port)
|
||||
{
|
||||
int ret;
|
||||
@@ -1654,7 +1653,7 @@ static int hccs_create_die_dir(struct hccs_dev *hdev,
|
||||
|
||||
for (i = 0; i < die->port_num; i++) {
|
||||
port = &die->ports[i];
|
||||
ret = hccs_create_hccs_dir(hdev, die, port);
|
||||
ret = hccs_create_hccs_dir(die, port);
|
||||
if (ret) {
|
||||
dev_err(hdev->dev, "create hccs%u dir failed.\n",
|
||||
port->port_id);
|
||||
|
||||
Reference in New Issue
Block a user