projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdf655d
)
drm/prime: clarify logic a bit in drm_gem_prime_fd_to_handle
author
Daniel Vetter
<daniel.vetter@ffwll.ch>
Wed, 14 Aug 2013 22:02:43 +0000
(
00:02
+0200)
committer
Dave Airlie
<airlied@redhat.com>
Wed, 21 Aug 2013 02:53:46 +0000
(12:53 +1000)
if (!ret) implies that ret == 0, so no need to clear it again. And
explicitly check for ret == 0 to indicate that we're checking an errno
integer.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_prime.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/drm_prime.c
b/drivers/gpu/drm/drm_prime.c
index cb0451679e81391209e14f687de21880c1a76d49..3d576018893ab8182894ebbe01679efb6daa90d0 100644
(file)
--- a/
drivers/gpu/drm/drm_prime.c
+++ b/
drivers/gpu/drm/drm_prime.c
@@
-444,10
+444,8
@@
int drm_gem_prime_fd_to_handle(struct drm_device *dev,
ret = drm_prime_lookup_buf_handle(&file_priv->prime,
dma_buf, handle);
- if (!ret) {
- ret = 0;
+ if (ret == 0)
goto out_put;
- }
/* never seen this one, need to import */
obj = dev->driver->gem_prime_import(dev, dma_buf);