OSDN Git Service

drm/i915/skl: Remove unnecessary () used with abs_diff()
authorDamien Lespiau <damien.lespiau@intel.com>
Thu, 7 May 2015 17:38:44 +0000 (18:38 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 29 May 2015 08:15:25 +0000 (10:15 +0200)
abs_diff() properly protects its parameters, so no need for the outer ()
here.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ddi.c

index 416f8fb..0f93174 100644 (file)
@@ -1239,7 +1239,7 @@ found:
                if (found) {
                        dco_central_freq_deviation[dco_count] =
                                div64_u64(10000 *
-                                         abs_diff((candidate_p * afe_clock),
+                                         abs_diff(candidate_p * afe_clock,
                                                   dco_central_freq[dco_count]),
                                          dco_central_freq[dco_count]);