Commit 3f05eb4e authored by Dan Carpenter's avatar Dan Carpenter Committed by Dave Airlie

drm/virtio: remove some dead code

The goto is correct, and we never reach the return statement so just
delete the dead code.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 2b7edcad
...@@ -443,14 +443,12 @@ int virtio_gpu_ttm_init(struct virtio_gpu_device *vgdev) ...@@ -443,14 +443,12 @@ int virtio_gpu_ttm_init(struct virtio_gpu_device *vgdev)
if (r) { if (r) {
DRM_ERROR("failed initializing buffer object driver(%d).\n", r); DRM_ERROR("failed initializing buffer object driver(%d).\n", r);
goto err_dev_init; goto err_dev_init;
return r;
} }
r = ttm_bo_init_mm(&vgdev->mman.bdev, TTM_PL_TT, 0); r = ttm_bo_init_mm(&vgdev->mman.bdev, TTM_PL_TT, 0);
if (r) { if (r) {
DRM_ERROR("Failed initializing GTT heap.\n"); DRM_ERROR("Failed initializing GTT heap.\n");
goto err_mm_init; goto err_mm_init;
return r;
} }
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment