linux/drivers/net/ethernet/sun
Sebastian Andrzej Siewior f19250883f net/niu: remove one superfluous dma mask check
The idea here seems to be to get a 44bit DMA mask working and if this
fails it should fallback to a 32bit DMA mask. The dma_mask variable is
assigned once to 44bit and never updated. pci_set_dma_mask() and
pci_set_consistent_dma_mask() are both implemented as functions so there
is no evil macro which might update dma_mask. Looking at the assembly, I
see a call to dma_set_mask() followed by dma_supported() and then a jump
passed the second dma_set_mask(). The only way to get to second
dma_set_mask() call is by an error code in the first one.

So I hereby remove the check since it looks superfluous. Please ignore
the path if there is black magic involved.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-05-03 14:54:50 -04:00
..
cassini.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
cassini.h
Kconfig
Makefile
niu.c net/niu: remove one superfluous dma mask check 2012-05-03 14:54:50 -04:00
niu.h
sunbmac.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
sunbmac.h
sungem.c sungem: use mdelay instead of udelay where necessary 2012-04-21 15:28:48 -04:00
sungem.h
sunhme.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2012-04-10 14:30:45 -04:00
sunhme.h sunhme: stop using net_device.{base_addr, irq}. 2012-04-07 11:47:03 +02:00
sunqe.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
sunqe.h
sunvnet.c powerpc+sparc/vio: Modernize driver registration 2012-03-28 11:33:24 +11:00
sunvnet.h