projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2a5da4
)
drm/cma: Cocci spatch "ptr_ret.spatch"
author
Thomas Meyer
<thomas@m3y3r.de>
Sat, 1 Jun 2013 09:56:46 +0000
(09:56 +0000)
committer
Dave Airlie
<airlied@redhat.com>
Mon, 10 Jun 2013 22:30:54 +0000
(08:30 +1000)
Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_gem_cma_helper.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/drm_gem_cma_helper.c
b/drivers/gpu/drm/drm_gem_cma_helper.c
index f94fcd752815e37c1a0cfdf532e05c829330f788..9efabceed42e389d605941efc5ed3342ef9c309b 100644
(file)
--- a/
drivers/gpu/drm/drm_gem_cma_helper.c
+++ b/
drivers/gpu/drm/drm_gem_cma_helper.c
@@
-215,10
+215,7
@@
int drm_gem_cma_dumb_create(struct drm_file *file_priv,
cma_obj = drm_gem_cma_create_with_handle(file_priv, dev,
args->size, &args->handle);
- if (IS_ERR(cma_obj))
- return PTR_ERR(cma_obj);
-
- return 0;
+ return PTR_RET(cma_obj);
}
EXPORT_SYMBOL_GPL(drm_gem_cma_dumb_create);