staging: imgv: remove dead code
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Fri, 27 Apr 2012 14:23:56 +0000 (17:23 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 3 Jul 2012 09:30:54 +0000 (12:30 +0300)
Both callers of 'pl_create_buf()' leave the triggering page list
empty.

Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
drivers/staging/mrst/imgv/psb_ttm_placement_user.c

index 903b0fe..679cce2 100644 (file)
@@ -350,9 +350,6 @@ static int pl_create_buf(struct create_params *p, struct ttm_lock *lock,
                goto err2;
        }
 
-       if (p->pages)
-               drm_psb_set_fixed_pages(bo->ttm, p->pages, pg_cnt);
-
        ttm_read_unlock(lock);
 
        /* ttm_bo_unref->destroy will unset the fixed pages on failure */