net: hns: Switch to use acpi_evaluate_dsm_typed()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 19 Jan 2023 19:11:01 +0000 (21:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Jan 2023 13:25:17 +0000 (13:25 +0000)
commit498fe81011120df551192ad6058e785a61ab3216
treee8a6a616e8a2870201963cbc3b5771408e0ca7e5
parent1b94ad7ccc21c002ca324d4fe6c11078bb4d4c9a
net: hns: Switch to use acpi_evaluate_dsm_typed()

The acpi_evaluate_dsm_typed() provides a way to check the type of the
object evaluated by _DSM call. Use it instead of open coded variant.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c