Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64970
b: refs/heads/master
c: a041fe2
h: refs/heads/master
v: v3
  • Loading branch information
Ishizaki Kou authored and Jeff Garzik committed Sep 13, 2007
1 parent 7c09a60 commit 20dbe1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 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: 64251621796d5d4c0c4b6a6b6d845e4a43c63aee
refs/heads/master: a041fe2e8d0bd749b2416ef79adc416e24af7c63
12 changes: 4 additions & 8 deletions trunk/drivers/net/spider_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -1441,17 +1441,14 @@ static void
spider_net_handle_error_irq(struct spider_net_card *card, u32 status_reg)
{
u32 error_reg1, error_reg2;
u32 mask_reg1, mask_reg2;
u32 i;
int show_error = 1;

error_reg1 = spider_net_read_reg(card, SPIDER_NET_GHIINT1STS);
error_reg2 = spider_net_read_reg(card, SPIDER_NET_GHIINT2STS);
mask_reg1 = spider_net_read_reg(card, SPIDER_NET_GHIINT1MSK);
mask_reg2 = spider_net_read_reg(card,SPIDER_NET_GHIINT2MSK);

error_reg1 &= mask_reg1;
error_reg2 &= mask_reg2;
error_reg1 &= SPIDER_NET_INT1_MASK_VALUE;
error_reg2 &= SPIDER_NET_INT2_MASK_VALUE;

/* check GHIINT0STS ************************************/
if (status_reg)
Expand Down Expand Up @@ -1679,11 +1676,10 @@ spider_net_interrupt(int irq, void *ptr)
{
struct net_device *netdev = ptr;
struct spider_net_card *card = netdev_priv(netdev);
u32 status_reg, mask_reg;
u32 status_reg;

status_reg = spider_net_read_reg(card, SPIDER_NET_GHIINT0STS);
mask_reg = spider_net_read_reg(card, SPIDER_NET_GHIINT0MSK);
status_reg &= mask_reg;
status_reg &= SPIDER_NET_INT0_MASK_VALUE;

if (!status_reg)
return IRQ_NONE;
Expand Down

0 comments on commit 20dbe1d

Please sign in to comment.