ia64/xen-unstable

changeset 542:eacf3abcd1da

bitkeeper revision 1.301 (3f0ac784kapr1mR68k4rqPH-g7cZCQ)

Get rid of some GNU extensions.
author sos22@labyrinth.cl.cam.ac.uk
date Tue Jul 08 13:30:44 2003 +0000 (2003-07-08)
parents 071d669cc50a
children aa26e81d8c04
files xenolinux-2.4.21-sparse/arch/xeno/drivers/block/xl_physdisk_proc.c
line diff
     1.1 --- a/xenolinux-2.4.21-sparse/arch/xeno/drivers/block/xl_physdisk_proc.c	Tue Jul 08 13:03:49 2003 +0000
     1.2 +++ b/xenolinux-2.4.21-sparse/arch/xeno/drivers/block/xl_physdisk_proc.c	Tue Jul 08 13:30:44 2003 +0000
     1.3 @@ -17,11 +17,10 @@ static dev_t physdev_to_xldev(unsigned s
     1.4  {
     1.5      switch (physdev & XENDEV_TYPE_MASK) {
     1.6      case XENDEV_IDE:
     1.7 -	switch (physdev & XENDEV_IDX_MASK) {
     1.8 -	case 0...(XLIDE_DEVS_PER_MAJOR - 1):
     1.9 +        if ( (physdev & XENDEV_IDX_MASK) < XLIDE_DEVS_PER_MAJOR) {
    1.10  	    return MKDEV(XLIDE_MAJOR_0,
    1.11  			 (physdev & XENDEV_IDX_MASK) << XLIDE_PARTN_SHIFT);
    1.12 -	case XLIDE_DEVS_PER_MAJOR...(XLIDE_DEVS_PER_MAJOR * 2 - 1):
    1.13 +	} else if ( (physdev & XENDEV_IDX_MASK) < (XLIDE_DEVS_PER_MAJOR * 2)) {
    1.14  	    return MKDEV(XLIDE_MAJOR_1,
    1.15  			 (physdev & XENDEV_IDX_MASK) << XLIDE_PARTN_SHIFT);
    1.16  	}