]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: intel_cht_int33fe: Drop double check for ACPI companion device
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 26 May 2020 12:53:29 +0000 (15:53 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 9 Jul 2020 19:40:36 +0000 (22:40 +0300)
commit5d96e21da2c4291bf5c002739af47cfee57cba25
treeb62f792b61740ddd64d622992b622ad64199156c
parent74a27a5f5a99e6b5adfd790053b6cccac3270c76
platform/x86: intel_cht_int33fe: 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>
drivers/platform/x86/intel_cht_int33fe_common.c