summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/mgag200
diff options
context:
space:
mode:
authorEgbert Eich2013-07-23 08:44:34 +0200
committerDave Airlie2013-07-30 01:43:59 +0200
commit030f19f0e24c020e3577d9a0da878e417efc2b39 (patch)
tree8a234e5a878c1fc415c73ce6469e77f57afce6cc /drivers/gpu/drm/mgag200
parentMerge branch 'drm-fixes-3.11' of git://people.freedesktop.org/~agd5f/linux (diff)
downloadkernel-qcow2-linux-030f19f0e24c020e3577d9a0da878e417efc2b39.tar.gz
kernel-qcow2-linux-030f19f0e24c020e3577d9a0da878e417efc2b39.tar.xz
kernel-qcow2-linux-030f19f0e24c020e3577d9a0da878e417efc2b39.zip
drm/mgag200: Fix logic in mgag200_bo_pin() (v2)
Add missing 'return 0;'. v2: Simplified patch as suggested by Dave Airlie <airlied@redhat.com> Signed-off-by: Egbert Eich <eich@suse.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/mgag200')
-rw-r--r--drivers/gpu/drm/mgag200/mgag200_ttm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/mgag200/mgag200_ttm.c b/drivers/gpu/drm/mgag200/mgag200_ttm.c
index 3acb2b044c7b..13878d5de063 100644
--- a/drivers/gpu/drm/mgag200/mgag200_ttm.c
+++ b/drivers/gpu/drm/mgag200/mgag200_ttm.c
@@ -353,6 +353,7 @@ int mgag200_bo_pin(struct mgag200_bo *bo, u32 pl_flag, u64 *gpu_addr)
bo->pin_count++;
if (gpu_addr)
*gpu_addr = mgag200_bo_gpu_offset(bo);
+ return 0;
}
mgag200_ttm_placement(bo, pl_flag);