ia64/linux-2.6.18-xen.hg

changeset 85:52ec41fa9cd1

[IA64] Remove 'may be uninitialized' warning

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Alex Williamson <alex.williamson@hp.com>
date Thu Jul 05 13:35:01 2007 -0600 (2007-07-05)
parents 291e24787f8b
children 6e16fa7e3f20
files arch/ia64/xen/hypervisor.c
line diff
     1.1 --- a/arch/ia64/xen/hypervisor.c	Mon Jul 02 12:20:27 2007 -0600
     1.2 +++ b/arch/ia64/xen/hypervisor.c	Thu Jul 05 13:35:01 2007 -0600
     1.3 @@ -984,7 +984,6 @@ p2m_expose_init(void)
     1.4  	int error = 0;
     1.5  #ifdef CONFIG_XEN_IA64_EXPOSE_P2M_USE_DTR
     1.6  	int i;
     1.7 -	unsigned long page_size;
     1.8  	unsigned long log_page_size = 0;
     1.9  #endif
    1.10  
    1.11 @@ -1013,6 +1012,7 @@ p2m_expose_init(void)
    1.12  
    1.13  #ifdef CONFIG_XEN_IA64_EXPOSE_P2M_USE_DTR
    1.14  	if (xen_ia64_p2m_expose_use_dtr) {
    1.15 +		unsigned long page_size = 0;
    1.16  		unsigned long granule_pfn = 0;
    1.17  		p2m_size = ((p2m_max_low_pfn - p2m_min_low_pfn +
    1.18  			     PTRS_PER_PTE - 1) / PTRS_PER_PTE) << PAGE_SHIFT;