OSDN Git Service

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)
commitf7747be1410321de8a92e340c5ca6c18a59770e9
tree9eb430be100c3a5a0bd53bb121d5942ff265b579
parent798c5daf3cddff3f39c5542a50a2dbd83879b05d
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