diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2012-05-03 20:22:00 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-03 14:54:50 -0400 |
commit | f19250883fe09dd2b6b5f818d84874837948c546 (patch) | |
tree | 028b8107cafab2d25983448c7dade4d795386b4d /drivers/parisc | |
parent | 64e771bbea58f57e3f14d8942561def7435cebc9 (diff) |
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>
Diffstat (limited to 'drivers/parisc')
0 files changed, 0 insertions, 0 deletions