drivers:net: Remove dma_alloc_coherent OOM messages
I believe these error messages are already logged on allocation failure by warn_alloc_failed and so get a dump_stack on OOM. Remove the unnecessary additional error logging. Around these deletions: o Alignment neatening. o Remove unnecessary casts of dma_alloc_coherent. o Hoist assigns from ifs. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -1373,10 +1373,9 @@ static int sparc_lance_probe_one(struct platform_device *op,
|
||||
dma_alloc_coherent(&op->dev,
|
||||
sizeof(struct lance_init_block),
|
||||
&lp->init_block_dvma, GFP_ATOMIC);
|
||||
if (!lp->init_block_mem) {
|
||||
printk(KERN_ERR "SunLance: Cannot allocate consistent DMA memory.\n");
|
||||
if (!lp->init_block_mem)
|
||||
goto fail;
|
||||
}
|
||||
|
||||
lp->pio_buffer = 0;
|
||||
lp->init_ring = lance_init_ring_dvma;
|
||||
lp->rx = lance_rx_dvma;
|
||||
|
Reference in New Issue
Block a user