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>
This commit is contained in:
committed by
David S. Miller
parent
00137dad17
commit
416c6f90f8
@@ -481,8 +481,9 @@ static int __init ni65_probe1(struct net_device *dev,int ioaddr)
|
|||||||
else {
|
else {
|
||||||
if(dev->dma == 0) {
|
if(dev->dma == 0) {
|
||||||
/* 'stuck test' from lance.c */
|
/* 'stuck test' from lance.c */
|
||||||
long dma_channels = ((inb(DMA1_STAT_REG) >> 4) & 0x0f) |
|
unsigned long dma_channels =
|
||||||
(inb(DMA2_STAT_REG) & 0xf0);
|
((inb(DMA1_STAT_REG) >> 4) & 0x0f)
|
||||||
|
| (inb(DMA2_STAT_REG) & 0xf0);
|
||||||
for(i=1;i<5;i++) {
|
for(i=1;i<5;i++) {
|
||||||
int dma = dmatab[i];
|
int dma = dmatab[i];
|
||||||
if(test_bit(dma,&dma_channels) || request_dma(dma,"ni6510"))
|
if(test_bit(dma,&dma_channels) || request_dma(dma,"ni6510"))
|
||||||
|
Reference in New Issue
Block a user