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

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

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

parent de47f072
Loading
Loading
Loading
Loading
+5 −5
Original line number Original line Diff line number Diff line
@@ -120,8 +120,8 @@ static void __devinit tulip_build_fake_mediatable(struct tulip_private *tp)
			  0x00, 0x06  /* ttm bit map */
			  0x00, 0x06  /* ttm bit map */
			};
			};


		tp->mtable = (struct mediatable *)
		tp->mtable = kmalloc(sizeof(struct mediatable) +
			kmalloc(sizeof(struct mediatable) + sizeof(struct medialeaf), GFP_KERNEL);
				     sizeof(struct medialeaf), GFP_KERNEL);


		if (tp->mtable == NULL)
		if (tp->mtable == NULL)
			return; /* Horrible, impossible failure. */
			return; /* Horrible, impossible failure. */
@@ -227,8 +227,8 @@ void __devinit tulip_parse_eeprom(struct net_device *dev)
		        return;
		        return;
		}
		}


		mtable = (struct mediatable *)
		mtable = kmalloc(sizeof(struct mediatable) +
			kmalloc(sizeof(struct mediatable) + count*sizeof(struct medialeaf),
				 count * sizeof(struct medialeaf),
				 GFP_KERNEL);
				 GFP_KERNEL);
		if (mtable == NULL)
		if (mtable == NULL)
			return;				/* Horrible, impossible failure. */
			return;				/* Horrible, impossible failure. */