Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 55115
b: refs/heads/master
c: 6478fac
h: refs/heads/master
i:
  55113: c42261b
  55111: 238d157
v: v3
  • Loading branch information
Richard Knutsson authored and Jeff Garzik committed May 8, 2007
1 parent fdcd877 commit 4fed802
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8bc354730bc877ebdf35c692460b01e624934aea
refs/heads/master: 6478fac6c31cbf45e8b818880728238e0c548d57
11 changes: 4 additions & 7 deletions trunk/drivers/net/dm9000.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@

#define DM9000_PHY 0x40 /* PHY address 0x01 */

#define TRUE 1
#define FALSE 0

#define CARDNAME "dm9000"
#define PFX CARDNAME ": "

Expand Down Expand Up @@ -896,7 +893,7 @@ dm9000_rx(struct net_device *dev)
struct dm9000_rxhdr rxhdr;
struct sk_buff *skb;
u8 rxbyte, *rdptr;
int GoodPacket;
bool GoodPacket;
int RxLen;

/* Check packet ready or not */
Expand All @@ -918,7 +915,7 @@ dm9000_rx(struct net_device *dev)
return;

/* A packet ready now & Get status/length */
GoodPacket = TRUE;
GoodPacket = true;
writeb(DM9000_MRCMD, db->io_addr);

(db->inblk)(db->io_data, &rxhdr, sizeof(rxhdr));
Expand All @@ -927,7 +924,7 @@ dm9000_rx(struct net_device *dev)

/* Packet Status check */
if (RxLen < 0x40) {
GoodPacket = FALSE;
GoodPacket = false;
PRINTK1("Bad Packet received (runt)\n");
}

Expand All @@ -936,7 +933,7 @@ dm9000_rx(struct net_device *dev)
}

if (rxhdr.RxStatus & 0xbf00) {
GoodPacket = FALSE;
GoodPacket = false;
if (rxhdr.RxStatus & 0x100) {
PRINTK1("fifo error\n");
db->stats.rx_fifo_errors++;
Expand Down

0 comments on commit 4fed802

Please sign in to comment.