patch-1.3.33 linux/drivers/net/znet.c

Next file: linux/drivers/scsi/scsi.c
Previous file: linux/drivers/net/wd.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.32/linux/drivers/net/znet.c linux/drivers/net/znet.c
@@ -640,11 +640,11 @@
 {
 	short ioaddr = dev->base_addr;
 
-	if (num_addrs < 0) {
+	if (num_addrs == -1) {
 		/* Enable promiscuous mode */
 		i593_init[7] &= ~3;		i593_init[7] |= 1;
 		i593_init[13] &= ~8;	i593_init[13] |= 8;
-	} else if (num_addrs > 0) {
+	} else if (num_addrs != 0) {
 		/* Enable accept-all-multicast mode */
 		i593_init[7] &= ~3;		i593_init[7] |= 0;
 		i593_init[13] &= ~8;	i593_init[13] |= 8;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this