Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 79a34648 authored by Jesper Juhl's avatar Jesper Juhl Committed by David S. Miller
Browse files

[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: default avatarJesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 12fe2c58
Loading
Loading
Loading
Loading
+7 −5
Original line number Original line Diff line number Diff line
@@ -669,11 +669,13 @@ printk("NONONONOO!!!!\n");
		u32 *put;
		u32 *put;
		int i;
		int i;


		dsc = (u32 *) kmalloc(uPD98401_TXPD_SIZE*2+
		dsc = kmalloc(uPD98401_TXPD_SIZE * 2 +
			uPD98401_TXBD_SIZE * ATM_SKB(skb)->iovcnt, GFP_ATOMIC);
			uPD98401_TXBD_SIZE * ATM_SKB(skb)->iovcnt, GFP_ATOMIC);
		if (!dsc) {
		if (!dsc) {
			if (vcc->pop) vcc->pop(vcc,skb);
			if (vcc->pop)
			else dev_kfree_skb_irq(skb);
				vcc->pop(vcc, skb);
			else
				dev_kfree_skb_irq(skb);
			return -EAGAIN;
			return -EAGAIN;
		}
		}
		/* @@@ should check alignment */
		/* @@@ should check alignment */