diff options
author | Hannes Eder <hannes@hanneseder.net> | 2009-02-14 06:13:39 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-17 20:21:12 -0500 |
commit | 416c6f90f8a107ccae3788bb9798d10a2dac9ed0 (patch) | |
tree | 0c6ce5600741847a662addc1c97cb8c290490d0c /drivers/net/ni65.c | |
parent | 00137dad17707f0d14dbf7e193761220f1c2fe03 (diff) |
drivers/net/ni65.c: fix sparse warnings: fix signedness
Fix this sparse warnings:
drivers/net/ni65.c:488:36: warning: incorrect type in argument 2 (different signedness)
Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ni65.c')
-rw-r--r-- | drivers/net/ni65.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/ni65.c b/drivers/net/ni65.c index d769a88ddc98..df5f869e8d8f 100644 --- a/drivers/net/ni65.c +++ b/drivers/net/ni65.c | |||
@@ -481,8 +481,9 @@ static int __init ni65_probe1(struct net_device *dev,int ioaddr) | |||
481 | else { | 481 | else { |
482 | if(dev->dma == 0) { | 482 | if(dev->dma == 0) { |
483 | /* 'stuck test' from lance.c */ | 483 | /* 'stuck test' from lance.c */ |
484 | long dma_channels = ((inb(DMA1_STAT_REG) >> 4) & 0x0f) | | 484 | unsigned long dma_channels = |
485 | (inb(DMA2_STAT_REG) & 0xf0); | 485 | ((inb(DMA1_STAT_REG) >> 4) & 0x0f) |
486 | | (inb(DMA2_STAT_REG) & 0xf0); | ||
486 | for(i=1;i<5;i++) { | 487 | for(i=1;i<5;i++) { |
487 | int dma = dmatab[i]; | 488 | int dma = dmatab[i]; |
488 | if(test_bit(dma,&dma_channels) || request_dma(dma,"ni6510")) | 489 | if(test_bit(dma,&dma_channels) || request_dma(dma,"ni6510")) |