From: Imre Deak Date: Mon, 12 Apr 2021 23:24:13 +0000 (+0300) Subject: drm/i915: Drop redundant address-of op before lttpr_common_caps array X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=770d4c71eca7285216dc862849564b33c0d6a210;p=uclinux-h8%2Flinux.git drm/i915: Drop redundant address-of op before lttpr_common_caps array The address-of op in front of an array is just an alias to using the array on its own, so drop the op. Signed-off-by: Imre Deak Reviewed-by: Ville Syrjälä Link: https://patchwork.freedesktop.org/patch/msgid/20210412232413.2755054-2-imre.deak@intel.com --- diff --git a/drivers/gpu/drm/i915/display/intel_dp_link_training.c b/drivers/gpu/drm/i915/display/intel_dp_link_training.c index cbcfb0c4c370..7f684d33314f 100644 --- a/drivers/gpu/drm/i915/display/intel_dp_link_training.c +++ b/drivers/gpu/drm/i915/display/intel_dp_link_training.c @@ -37,7 +37,7 @@ intel_dp_dump_link_status(struct drm_device *drm, static void intel_dp_reset_lttpr_common_caps(struct intel_dp *intel_dp) { - memset(&intel_dp->lttpr_common_caps, 0, sizeof(intel_dp->lttpr_common_caps)); + memset(intel_dp->lttpr_common_caps, 0, sizeof(intel_dp->lttpr_common_caps)); } static void intel_dp_reset_lttpr_count(struct intel_dp *intel_dp)