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>
This commit is contained in:
David Herrmann 2013-07-11 11:56:33 +02:00 committed by Dave Airlie
parent 89c8233f82
commit c3911624f9
1 changed files with 0 additions and 4 deletions

View File

@ -52,10 +52,8 @@
drm_dma_handle_t *drm_pci_alloc(struct drm_device * dev, size_t size, size_t align) drm_dma_handle_t *drm_pci_alloc(struct drm_device * dev, size_t size, size_t align)
{ {
drm_dma_handle_t *dmah; drm_dma_handle_t *dmah;
#if 1
unsigned long addr; unsigned long addr;
size_t sz; size_t sz;
#endif
/* pci_alloc_consistent only guarantees alignment to the smallest /* pci_alloc_consistent only guarantees alignment to the smallest
* PAGE_SIZE order which is greater than or equal to the requested size. * 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) void __drm_pci_free(struct drm_device * dev, drm_dma_handle_t * dmah)
{ {
#if 1
unsigned long addr; unsigned long addr;
size_t sz; size_t sz;
#endif
if (dmah->vaddr) { if (dmah->vaddr) {
/* XXX - Is virt_to_page() legal for consistent mem? */ /* XXX - Is virt_to_page() legal for consistent mem? */