drm/mgag200: Fix logic in mgag200_bo_pin() (v2)
authorEgbert Eich <eich@suse.com>
Tue, 23 Jul 2013 06:44:34 +0000 (08:44 +0200)
committerDave Airlie <airlied@redhat.com>
Mon, 29 Jul 2013 23:43:59 +0000 (09:43 +1000)
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>
drivers/gpu/drm/mgag200/mgag200_ttm.c

index 3acb2b044c7b2d626c4efb9741c39a89f92a5ebc..13878d5de063f4b08b97ee2f5735dc2e3e7cb37b 100644 (file)
@@ -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);