kernels/linux-2.4.0/arch/ia64/sn/fprom/fpmem.c
/*
 * Made this into an explicit case statement so that
 * we can assign specific properties to banks like bank0
 * actually disabled etc.
 */
Made this into an explicit case statement so that
we can assign specific properties to banks like bank0
actually disabled etc.
Made this into an explicit case statement so that we can assign specific properties to banks like bank0 actually disabled etc .
int
IsBankPresent(int index, node_memmap_t nmemmap)
{
	switch (index) {
		case 0:return nmemmap.b0;
		case 1:return nmemmap.b1;
		case 2:return nmemmap.b2;
		case 3:return nmemmap.b3;
		case 4:return nmemmap.b4;
		case 5:return nmemmap.b5;
		case 6:return nmemmap.b6;
		case 7:return nmemmap.b7;
		default:return -1 ;
	}
}
int IsBankPresent ( int index , node_memmap_t nmemmap ) { switch ( index ) { case 0 : return nmemmap . b0 ; case 1 : return nmemmap . b1 ; case 2 : return nmemmap . b2 ; case 3 : return nmemmap . b3 ; case 4 : return nmemmap . b4 ; case 5 : return nmemmap . b5 ; case 6 : return nmemmap . b6 ; case 7 : return nmemmap . b7 ; default : return -1 ; } }
Made this into an explicit case statement so that
 we can assign specific properties to banks like bank0
 actually disabled etc.
Made this into an explicit case statement so that we can assign specific properties to banks like bank0 actually disabled etc .