patch-1.3.33 linux/drivers/net/hp100.c
Next file: linux/drivers/net/lance.c
Previous file: linux/drivers/net/hp.c
Back to the patch index
Back to the overall index
-  Lines: 16
 -  Date:
Tue Oct 10 15:45:27 1995
 -  Orig file: 
v1.3.32/linux/drivers/net/hp100.c
 -  Orig date: 
Tue Aug 15 20:39:03 1995
 
diff -u --recursive --new-file v1.3.32/linux/drivers/net/hp100.c linux/drivers/net/hp100.c
@@ -876,13 +876,13 @@
   hp100_page( MAC_CTRL );
   hp100_andb( ~(HP100_RX_EN | HP100_TX_EN), MAC_CFG_1 );	/* stop rx/tx */
 
-  if ( num_addrs < 0 )
+  if ( num_addrs == -1 )
     {
       lp -> mac2_mode = HP100_MAC2MODE6;  /* promiscuous mode, all good */
       lp -> mac1_mode = HP100_MAC1MODE6;  /* packets on the net */
     }
    else
-  if ( num_addrs > 0 )
+  if ( num_addrs != 0 )
     {
       lp -> mac2_mode = HP100_MAC2MODE5;  /* multicast mode, packets for me */
       lp -> mac1_mode = HP100_MAC1MODE5;  /* broadcasts and all multicasts */
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