Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203637
b: refs/heads/master
c: e2df8b7
h: refs/heads/master
i:
  203635: 5d80cf9
v: v3
  • Loading branch information
David S. Miller committed Jul 19, 2010
1 parent ea4ecdf commit 2b4b129
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 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: d6d9ca0fec6aea0f2e4064474a1c5cdbed873c63
refs/heads/master: e2df8b7f6665075f7fe93613897117743c7bf0ba
8 changes: 3 additions & 5 deletions trunk/drivers/net/ks8842.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,16 +424,14 @@ static int ks8842_tx_frame(struct sk_buff *skb, struct net_device *netdev)
static void ks8842_rx_frame(struct net_device *netdev,
struct ks8842_adapter *adapter)
{
u16 status16;
u32 status;
int len;

if (adapter->conf_flags & KS884X_16BIT) {
status16 = ks8842_read16(adapter, 17, REG_QMU_DATA_LO);
len = (int)ks8842_read16(adapter, 17, REG_QMU_DATA_HI);
len &= 0xffff;
status = ks8842_read16(adapter, 17, REG_QMU_DATA_LO);
len = ks8842_read16(adapter, 17, REG_QMU_DATA_HI);
netdev_dbg(netdev, "%s - rx_data: status: %x\n",
__func__, status16);
__func__, status);
} else {
status = ks8842_read32(adapter, 17, REG_QMU_DATA_LO);
len = (status >> 16) & 0x7ff;
Expand Down

0 comments on commit 2b4b129

Please sign in to comment.