drm/pci: remove useles #if 1
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 11 Jul 2013 09:56:33 +0000 (11:56 +0200)
committerDave Airlie <airlied@gmail.com>
Tue, 23 Jul 2013 09:37:59 +0000 (19:37 +1000)
These don't make any sense, really..

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Dave Airlie <airlied@gmail.com>
drivers/gpu/drm/drm_pci.c

index 80c0b2b298017a0e1810c7db27cd97ca4bb87d6d..a7b46ff80b0fb7c64d89a7889728bea19825e271 100644 (file)
 drm_dma_handle_t *drm_pci_alloc(struct drm_device * dev, size_t size, size_t align)
 {
        drm_dma_handle_t *dmah;
-#if 1
        unsigned long addr;
        size_t sz;
-#endif
 
        /* pci_alloc_consistent only guarantees alignment to the smallest
         * PAGE_SIZE order which is greater than or equal to the requested size.
@@ -97,10 +95,8 @@ EXPORT_SYMBOL(drm_pci_alloc);
  */
 void __drm_pci_free(struct drm_device * dev, drm_dma_handle_t * dmah)
 {
-#if 1
        unsigned long addr;
        size_t sz;
-#endif
 
        if (dmah->vaddr) {
                /* XXX - Is virt_to_page() legal for consistent mem? */