aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/dm9000.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/net/dm9000.c b/drivers/net/dm9000.c
index 0e338539b822..264fa0e2e075 100644
--- a/drivers/net/dm9000.c
+++ b/drivers/net/dm9000.c
@@ -77,9 +77,6 @@
77 77
78#define DM9000_PHY 0x40 /* PHY address 0x01 */ 78#define DM9000_PHY 0x40 /* PHY address 0x01 */
79 79
80#define TRUE 1
81#define FALSE 0
82
83#define CARDNAME "dm9000" 80#define CARDNAME "dm9000"
84#define PFX CARDNAME ": " 81#define PFX CARDNAME ": "
85 82
@@ -896,7 +893,7 @@ dm9000_rx(struct net_device *dev)
896 struct dm9000_rxhdr rxhdr; 893 struct dm9000_rxhdr rxhdr;
897 struct sk_buff *skb; 894 struct sk_buff *skb;
898 u8 rxbyte, *rdptr; 895 u8 rxbyte, *rdptr;
899 int GoodPacket; 896 bool GoodPacket;
900 int RxLen; 897 int RxLen;
901 898
902 /* Check packet ready or not */ 899 /* Check packet ready or not */
@@ -918,7 +915,7 @@ dm9000_rx(struct net_device *dev)
918 return; 915 return;
919 916
920 /* A packet ready now & Get status/length */ 917 /* A packet ready now & Get status/length */
921 GoodPacket = TRUE; 918 GoodPacket = true;
922 writeb(DM9000_MRCMD, db->io_addr); 919 writeb(DM9000_MRCMD, db->io_addr);
923 920
924 (db->inblk)(db->io_data, &rxhdr, sizeof(rxhdr)); 921 (db->inblk)(db->io_data, &rxhdr, sizeof(rxhdr));
@@ -927,7 +924,7 @@ dm9000_rx(struct net_device *dev)
927 924
928 /* Packet Status check */ 925 /* Packet Status check */
929 if (RxLen < 0x40) { 926 if (RxLen < 0x40) {
930 GoodPacket = FALSE; 927 GoodPacket = false;
931 PRINTK1("Bad Packet received (runt)\n"); 928 PRINTK1("Bad Packet received (runt)\n");
932 } 929 }
933 930
@@ -936,7 +933,7 @@ dm9000_rx(struct net_device *dev)
936 } 933 }
937 934
938 if (rxhdr.RxStatus & 0xbf00) { 935 if (rxhdr.RxStatus & 0xbf00) {
939 GoodPacket = FALSE; 936 GoodPacket = false;
940 if (rxhdr.RxStatus & 0x100) { 937 if (rxhdr.RxStatus & 0x100) {
941 PRINTK1("fifo error\n"); 938 PRINTK1("fifo error\n");
942 db->stats.rx_fifo_errors++; 939 db->stats.rx_fifo_errors++;