projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06615ee
)
drm/i915: use ERR_CAST instead of ERR_PTR/PTR_ERR
author
Fabian Frederick
<fabf@skynet.be>
Sat, 25 Apr 2015 09:34:29 +0000
(11:34 +0200)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Fri, 8 May 2015 11:03:20 +0000
(13:03 +0200)
Inspired by scripts/coccinelle/api/err_cast.cocci
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_drv.h
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/intel_drv.h
b/drivers/gpu/drm/i915/intel_drv.h
index
ddf3fef
..
ea20edb
100644
(file)
--- a/
drivers/gpu/drm/i915/intel_drv.h
+++ b/
drivers/gpu/drm/i915/intel_drv.h
@@
-1419,7
+1419,7
@@
intel_atomic_get_crtc_state(struct drm_atomic_state *state,
struct drm_crtc_state *crtc_state;
crtc_state = drm_atomic_get_crtc_state(state, &crtc->base);
if (IS_ERR(crtc_state))
- return ERR_
PTR(PTR_ERR(crtc_state)
);
+ return ERR_
CAST(crtc_state
);
return to_intel_crtc_state(crtc_state);
}