projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b7edca
)
drm/virtio: remove some dead code
author
Dan Carpenter
<dan.carpenter@oracle.com>
Wed, 10 Jun 2015 19:27:51 +0000
(22:27 +0300)
committer
Dave Airlie
<airlied@redhat.com>
Thu, 11 Jun 2015 03:16:35 +0000
(13:16 +1000)
The goto is correct, and we never reach the return statement so just
delete the dead code.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/virtio/virtgpu_ttm.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/virtio/virtgpu_ttm.c
b/drivers/gpu/drm/virtio/virtgpu_ttm.c
index e0e74c6bb95942ec8de0f21ef9248a49c97b0813..b092d7b9a292300aa7e5553047215b7ddf678412 100644
(file)
--- a/
drivers/gpu/drm/virtio/virtgpu_ttm.c
+++ b/
drivers/gpu/drm/virtio/virtgpu_ttm.c
@@
-443,14
+443,12
@@
int virtio_gpu_ttm_init(struct virtio_gpu_device *vgdev)
if (r) {
DRM_ERROR("failed initializing buffer object driver(%d).\n", r);
goto err_dev_init;
- return r;
}
r = ttm_bo_init_mm(&vgdev->mman.bdev, TTM_PL_TT, 0);
if (r) {
DRM_ERROR("Failed initializing GTT heap.\n");
goto err_mm_init;
- return r;
}
return 0;