Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Sat, 9 Jul 2022 00:07:09 +0000 (03:07 +0300)
committer
Mark Brown <broonie@kernel.org>
Mon, 11 Jul 2022 11:06:41 +0000 (12:06 +0100)
The acpi_spi_add_resource() is never called with ctrl == NULL and
index == -1. The only caller already performs the check. Hence
remove the duplication from the acpi_spi_add_resource().