[ATM]: Remove unneeded kmalloc() return value casts + tiny whitespace cleanup
Small cleanups for drivers/atm/zatm.c Get rid of unneeded cast of kmalloc() return value. Small whitespace/CodingStyle/formatting cleanup (since I was in there anyway). Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
12fe2c588d
commit
79a34648e4
@@ -669,11 +669,13 @@ printk("NONONONOO!!!!\n");
|
||||
u32 *put;
|
||||
int i;
|
||||
|
||||
dsc = (u32 *) kmalloc(uPD98401_TXPD_SIZE*2+
|
||||
dsc = kmalloc(uPD98401_TXPD_SIZE * 2 +
|
||||
uPD98401_TXBD_SIZE * ATM_SKB(skb)->iovcnt, GFP_ATOMIC);
|
||||
if (!dsc) {
|
||||
if (vcc->pop) vcc->pop(vcc,skb);
|
||||
else dev_kfree_skb_irq(skb);
|
||||
if (vcc->pop)
|
||||
vcc->pop(vcc, skb);
|
||||
else
|
||||
dev_kfree_skb_irq(skb);
|
||||
return -EAGAIN;
|
||||
}
|
||||
/* @@@ should check alignment */
|
||||
|
Reference in New Issue
Block a user