]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: acpi: Drop double check for ACPI companion device
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 28 May 2020 14:18:58 +0000 (17:18 +0300)
committerWolfram Sang <wsa@kernel.org>
Thu, 28 May 2020 16:01:20 +0000 (18:01 +0200)
commitb9b7917edd685ba3acc7874d23cdf88d59655ba1
tree826d88043900a21a892c83df646abb1e708d470e
parentef1690ad2da1e8eca77e39f16373b26260aa75da
i2c: 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>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/i2c-core-acpi.c