diff options
author | Jani Nikula <jani.nikula@intel.com> | 2013-10-04 15:08:47 +0300 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-10-10 12:46:49 +0200 |
commit | 953d22e870e2f15963976c77985b263afcceafc9 (patch) | |
tree | 92dd0f274381c5ab92c99d1a359831ef796fcb0e /drivers/gpu/drm/i915/intel_dp.c | |
parent | 389246f9c1a96c2db3b72006fd862a3af45fa663 (diff) | |
download | lwn-953d22e870e2f15963976c77985b263afcceafc9.tar.gz lwn-953d22e870e2f15963976c77985b263afcceafc9.zip |
drm/i915/dp: use sizeof for memset instead of magic value
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_dp.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_dp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 4f52ec75b39f..d9090d0340c7 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c @@ -2389,7 +2389,7 @@ static bool intel_dp_reset_link_train(struct intel_dp *intel_dp, uint32_t *DP, uint8_t dp_train_pat) { - memset(intel_dp->train_set, 0, 4); + memset(intel_dp->train_set, 0, sizeof(intel_dp->train_set)); intel_dp_set_signal_levels(intel_dp, DP); return intel_dp_set_link_train(intel_dp, DP, dp_train_pat); } |