drm/nouveau/gem: Remove unused function
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Sun, 11 Jan 2015 13:58:05 +0000 (14:58 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 22 Jan 2015 02:15:07 +0000 (12:15 +1000)
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>
drivers/gpu/drm/nouveau/nouveau_gem.c

index bf0f9e21d714a80248749ed0594699054e1b7fea..9eb8af4daeebdf0d28428d17d64174773cfff55e 100644 (file)
@@ -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)