dmaengine: acpi: Drop double check for ACPI companion device
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 22 Jun 2020 18:13:11 +0000 (21:13 +0300)
committerVinod Koul <vkoul@kernel.org>
Wed, 24 Jun 2020 05:58:41 +0000 (11:28 +0530)
commit6915ef1cbebb3f66e140ce6b1480bf4a800719da
tree2da1ddd921802d8186e659d35a9cf1486325f120
parent999a32efed09d724c426568731c5691233d3a680
dmaengine: acpi: Drop double check for ACPI companion device

acpi_dev_get_resources() does perform the NULL pointer check against
ACPI companion device which is given as function parameter. Thus,
there is no need to duplicate this check in the caller.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20200622181311.67649-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/acpi-dma.c