--- Gnu-Mach/linux/src/drivers/net/hp100.c 2020/09/02 04:41:40 1.1 +++ Gnu-Mach/linux/src/drivers/net/hp100.c 2020/09/02 04:46:42 1.1.1.2 @@ -2,7 +2,7 @@ ** hp100.c ** HP CASCADE Architecture Driver for 100VG-AnyLan Network Adapters ** -** $Id: hp100.c,v 1.1 2020/09/02 04:41:40 root Exp $ +** $Id: hp100.c,v 1.1.1.2 2020/09/02 04:46:42 root Exp $ ** ** Based on the HP100 driver written by Jaroslav Kysela ** Extended for new busmaster capable chipsets by @@ -648,8 +648,7 @@ __initfunc(static int hp100_probe1( stru { mem_ptr_phys = (u_int *)( hp100_inw( MEM_MAP_LSW ) | ( hp100_inw( MEM_MAP_MSW ) << 16 ) ); - (u_int)mem_ptr_phys &= ~0x1fff; /* 8k alignment */ - + mem_ptr_phys = (u_int *) ((u_int) mem_ptr_phys & ~0x1fff); /* 8k alignment */ if ( bus == HP100_BUS_ISA && ( (u_long)mem_ptr_phys & ~0xfffff ) != 0 ) { printk("hp100: %s: Can only use programmed i/o mode.\n", dev->name);