diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-06-10 19:27:51 (GMT) |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2015-06-11 03:16:35 (GMT) |
commit | 3f05eb4e3fc56df678f83925ced78bc97166b052 (patch) | |
tree | 664198188c85d7103b0c668ac879586eb209d749 /drivers/gpu/drm/virtio | |
parent | 2b7edcad69ecf6c452871c80a336bc3430ca9942 (diff) | |
download | linux-3f05eb4e3fc56df678f83925ced78bc97166b052.tar.xz |
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: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/virtio')
-rw-r--r-- | drivers/gpu/drm/virtio/virtgpu_ttm.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/virtio/virtgpu_ttm.c b/drivers/gpu/drm/virtio/virtgpu_ttm.c index e0e74c6..b092d7b 100644 --- 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; |