]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/dsi: Drop double check ACPI companion device for NULL
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 22 Dec 2021 15:40:33 +0000 (17:40 +0200)
committerJani Nikula <jani.nikula@intel.com>
Mon, 27 Dec 2021 10:46:14 +0000 (12:46 +0200)
commit3a428ad18a1c1c7a39aff778802a20dbf625a9bf
tree9eb430be100c3a5a0bd53bb121d5942ff265b579
parent89db66c74a87c7237c70229a97f61163f562400e
drm/i915/dsi: Drop double check ACPI companion device for NULL

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: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211222154033.6770-1-andriy.shevchenko@linux.intel.com
drivers/gpu/drm/i915/display/intel_dsi_vbt.c