diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2013-07-11 05:56:33 -0400 |
---|---|---|
committer | Dave Airlie <airlied@gmail.com> | 2013-07-23 05:37:59 -0400 |
commit | c3911624f9ecff440340ad6d94dc5835f55b0db6 (patch) | |
tree | 9be9e074a250f6558ca3084ba76605da9ea5ae3b /drivers/gpu/drm | |
parent | 89c8233f82d9c8af5b20e72e4a185a38a7d3c50b (diff) |
drm/pci: remove useles #if 1
These don't make any sense, really..
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Dave Airlie <airlied@gmail.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/drm_pci.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpu/drm/drm_pci.c b/drivers/gpu/drm/drm_pci.c index 80c0b2b29801..a7b46ff80b0f 100644 --- a/drivers/gpu/drm/drm_pci.c +++ b/drivers/gpu/drm/drm_pci.c | |||
@@ -52,10 +52,8 @@ | |||
52 | drm_dma_handle_t *drm_pci_alloc(struct drm_device * dev, size_t size, size_t align) | 52 | drm_dma_handle_t *drm_pci_alloc(struct drm_device * dev, size_t size, size_t align) |
53 | { | 53 | { |
54 | drm_dma_handle_t *dmah; | 54 | drm_dma_handle_t *dmah; |
55 | #if 1 | ||
56 | unsigned long addr; | 55 | unsigned long addr; |
57 | size_t sz; | 56 | size_t sz; |
58 | #endif | ||
59 | 57 | ||
60 | /* pci_alloc_consistent only guarantees alignment to the smallest | 58 | /* pci_alloc_consistent only guarantees alignment to the smallest |
61 | * PAGE_SIZE order which is greater than or equal to the requested size. | 59 | * PAGE_SIZE order which is greater than or equal to the requested size. |
@@ -97,10 +95,8 @@ EXPORT_SYMBOL(drm_pci_alloc); | |||
97 | */ | 95 | */ |
98 | void __drm_pci_free(struct drm_device * dev, drm_dma_handle_t * dmah) | 96 | void __drm_pci_free(struct drm_device * dev, drm_dma_handle_t * dmah) |
99 | { | 97 | { |
100 | #if 1 | ||
101 | unsigned long addr; | 98 | unsigned long addr; |
102 | size_t sz; | 99 | size_t sz; |
103 | #endif | ||
104 | 100 | ||
105 | if (dmah->vaddr) { | 101 | if (dmah->vaddr) { |
106 | /* XXX - Is virt_to_page() legal for consistent mem? */ | 102 | /* XXX - Is virt_to_page() legal for consistent mem? */ |