OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30a7862
)
drm/i915/skl: Remove unnecessary () used with abs_diff()
author
Damien Lespiau
<damien.lespiau@intel.com>
Thu, 7 May 2015 17:38:44 +0000
(18:38 +0100)
committer
Daniel 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
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/intel_ddi.c
b/drivers/gpu/drm/i915/intel_ddi.c
index
416f8fb
..
0f93174
100644
(file)
--- a/
drivers/gpu/drm/i915/intel_ddi.c
+++ b/
drivers/gpu/drm/i915/intel_ddi.c
@@
-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]);