projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9c1452
)
drm/virtio: simplify the return expression
author
Minghao Chi
<chi.minghao@zte.com.cn>
Fri, 29 Apr 2022 05:49:11 +0000
(
05:49
+0000)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Thu, 9 Jun 2022 05:30:13 +0000
(07:30 +0200)
Simplify the return expression.
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Link:
http://patchwork.freedesktop.org/patch/msgid/20220429054911.3851977-1-chi.minghao@zte.com.cn
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/virtio/virtgpu_prime.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/virtio/virtgpu_prime.c
b/drivers/gpu/drm/virtio/virtgpu_prime.c
index 55d80b77d9b06b6d7c615c7b625dc56baa98c894..44425f20d91aa67999059f9f92b4a2f88e303d37 100644
(file)
--- a/
drivers/gpu/drm/virtio/virtgpu_prime.c
+++ b/
drivers/gpu/drm/virtio/virtgpu_prime.c
@@
-90,7
+90,6
@@
static const struct virtio_dma_buf_ops virtgpu_dmabuf_ops = {
int virtio_gpu_resource_assign_uuid(struct virtio_gpu_device *vgdev,
struct virtio_gpu_object *bo)
{
- int ret;
struct virtio_gpu_object_array *objs;
objs = virtio_gpu_array_alloc(1);
@@
-98,11
+97,8
@@
int virtio_gpu_resource_assign_uuid(struct virtio_gpu_device *vgdev,
return -ENOMEM;
virtio_gpu_array_add_obj(objs, &bo->base.base);
- ret = virtio_gpu_cmd_resource_assign_uuid(vgdev, objs);
- if (ret)
- return ret;
- return
0
;
+ return
virtio_gpu_cmd_resource_assign_uuid(vgdev, objs)
;
}
struct dma_buf *virtgpu_gem_prime_export(struct drm_gem_object *obj,