]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit91175d3a3879919e4aeb45831a23bb8d420482bd
tree2da1ddd921802d8186e659d35a9cf1486325f120
parentf697bc43390db879f43a457e8a3cd68d41de26cf
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