Skip to content

Commit c2a3823

Browse files
author
Kalle Valo
committed
iwlwifi: acpi: remove unused function iwl_acpi_eval_dsm_func()
Stephen reported a warning: drivers/net/wireless/intel/iwlwifi/fw/acpi.c:720:12: warning: 'iwl_acpi_eval_dsm_func' defined but not used [-Wunused-function] The warning is correct and the function is not used anywhere, so let's just remove it. Reported-by: Stephen Rothwell <[email protected]> Fixes: 7119f02 ("iwlwifi: mvm: support BIOS enable/disable for 11ax in Russia") Signed-off-by: Kalle Valo <[email protected]> Acked-by: Luca Coelho <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 1d8820d commit c2a3823

File tree

1 file changed

+0
-36
lines changed
  • drivers/net/wireless/intel/iwlwifi/fw

1 file changed

+0
-36
lines changed

drivers/net/wireless/intel/iwlwifi/fw/acpi.c

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -717,42 +717,6 @@ int iwl_sar_geo_init(struct iwl_fw_runtime *fwrt,
717717
}
718718
IWL_EXPORT_SYMBOL(iwl_sar_geo_init);
719719

720-
static u32 iwl_acpi_eval_dsm_func(struct device *dev, enum iwl_dsm_funcs_rev_0 eval_func)
721-
{
722-
union acpi_object *obj;
723-
u32 ret;
724-
725-
obj = iwl_acpi_get_dsm_object(dev, 0,
726-
eval_func, NULL,
727-
&iwl_guid);
728-
729-
if (IS_ERR(obj)) {
730-
IWL_DEBUG_DEV_RADIO(dev,
731-
"ACPI: DSM func '%d': Got Error in obj = %ld\n",
732-
eval_func,
733-
PTR_ERR(obj));
734-
return 0;
735-
}
736-
737-
if (obj->type != ACPI_TYPE_INTEGER) {
738-
IWL_DEBUG_DEV_RADIO(dev,
739-
"ACPI: DSM func '%d' did not return a valid object, type=%d\n",
740-
eval_func,
741-
obj->type);
742-
ret = 0;
743-
goto out;
744-
}
745-
746-
ret = obj->integer.value;
747-
IWL_DEBUG_DEV_RADIO(dev,
748-
"ACPI: DSM method evaluated: func='%d', ret=%d\n",
749-
eval_func,
750-
ret);
751-
out:
752-
ACPI_FREE(obj);
753-
return ret;
754-
}
755-
756720
__le32 iwl_acpi_get_lari_config_bitmap(struct iwl_fw_runtime *fwrt)
757721
{
758722
int ret;

0 commit comments

Comments
 (0)