From: Dan Carpenter Date: Wed, 10 Jun 2015 19:27:51 +0000 (+0300) Subject: drm/virtio: remove some dead code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3f05eb4e3fc56df678f83925ced78bc97166b052;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/virtio/virtgpu_ttm.c b/drivers/gpu/drm/virtio/virtgpu_ttm.c index e0e74c6bb959..b092d7b9a292 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;