[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Remove unused max_dma_mfn variable.



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1187267279 -3600
# Node ID 256160ff19b74057f5819af20d68e6e3388c80e3
# Parent  c98c707a07a8f97f1b42dfa2186bc5d9b7d6d131
Remove unused max_dma_mfn variable.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 xen/common/page_alloc.c |    9 +--------
 1 files changed, 1 insertion(+), 8 deletions(-)

diff -r c98c707a07a8 -r 256160ff19b7 xen/common/page_alloc.c
--- a/xen/common/page_alloc.c   Tue Aug 14 16:32:49 2007 +0100
+++ b/xen/common/page_alloc.c   Thu Aug 16 13:27:59 2007 +0100
@@ -54,21 +54,14 @@ boolean_param("bootscrub", opt_bootscrub
 /*
  * Bit width of the DMA heap.
  */
-static unsigned int  dma_bitsize = CONFIG_DMA_BITSIZE;
-static unsigned long max_dma_mfn = (1UL<<(CONFIG_DMA_BITSIZE-PAGE_SHIFT))-1;
+static unsigned int dma_bitsize = CONFIG_DMA_BITSIZE;
 static void __init parse_dma_bits(char *s)
 {
     unsigned int v = simple_strtol(s, NULL, 0);
     if ( v >= (BITS_PER_LONG + PAGE_SHIFT) )
-    {
         dma_bitsize = BITS_PER_LONG + PAGE_SHIFT;
-        max_dma_mfn = ~0UL;
-    }
     else if ( v > PAGE_SHIFT + 1 )
-    {
         dma_bitsize = v;
-        max_dma_mfn = (1UL << (dma_bitsize - PAGE_SHIFT)) - 1;
-    }
     else
         printk("Invalid dma_bits value of %u ignored.\n", v);
 }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.