summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>2015-01-11 14:58:05 +0100
committerBen Skeggs <bskeggs@redhat.com>2015-01-12 13:58:05 +1000
commit56fa8940a1b6dc95d276b75d47b2e0d24a94b317 (patch)
treef5bd40830f07599dfe4afbeae7b8faacf5fdcb4a
parent563779c2e4ce5f8647dca4e6f0017fc3e2c8df3b (diff)
downloadnouveau-56fa8940a1b6dc95d276b75d47b2e0d24a94b317.tar.gz
drm/gem: Remove unused function
Remove the function domain_to_ttm() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r--drm/nouveau_gem.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/drm/nouveau_gem.c b/drm/nouveau_gem.c
index bf0f9e21d..9eb8af4da 100644
--- a/drm/nouveau_gem.c
+++ b/drm/nouveau_gem.c
@@ -850,19 +850,6 @@ out_next:
return nouveau_abi16_put(abi16, ret);
}
-static inline uint32_t
-domain_to_ttm(struct nouveau_bo *nvbo, uint32_t domain)
-{
- uint32_t flags = 0;
-
- if (domain & NOUVEAU_GEM_DOMAIN_VRAM)
- flags |= TTM_PL_FLAG_VRAM;
- if (domain & NOUVEAU_GEM_DOMAIN_GART)
- flags |= TTM_PL_FLAG_TT;
-
- return flags;
-}
-
int
nouveau_gem_ioctl_cpu_prep(struct drm_device *dev, void *data,
struct drm_file *file_priv)