Commit 589be650 authored by Joe Perches's avatar Joe Perches Committed by David S. Miller

drivers/net/tulip/eeprom.c: Remove unnecessary kmalloc casts

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent de47f072
......@@ -120,8 +120,8 @@ static void __devinit tulip_build_fake_mediatable(struct tulip_private *tp)
0x00, 0x06 /* ttm bit map */
};
tp->mtable = (struct mediatable *)
kmalloc(sizeof(struct mediatable) + sizeof(struct medialeaf), GFP_KERNEL);
tp->mtable = kmalloc(sizeof(struct mediatable) +
sizeof(struct medialeaf), GFP_KERNEL);
if (tp->mtable == NULL)
return; /* Horrible, impossible failure. */
......@@ -227,8 +227,8 @@ void __devinit tulip_parse_eeprom(struct net_device *dev)
return;
}
mtable = (struct mediatable *)
kmalloc(sizeof(struct mediatable) + count*sizeof(struct medialeaf),
mtable = kmalloc(sizeof(struct mediatable) +
count * sizeof(struct medialeaf),
GFP_KERNEL);
if (mtable == NULL)
return; /* Horrible, impossible failure. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment