drivers/net/tulip/eeprom.c: Remove unnecessary kmalloc casts
authorJoe Perches <joe@perches.com>
Mon, 31 May 2010 17:23:13 +0000 (17:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Jun 2010 07:15:53 +0000 (00:15 -0700)
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tulip/eeprom.c

index 6002e651b9ea5f4f9510f89fa008b439f25fa664..3031ed9c4a1a83e384d23875bf55798dff73d65f 100644 (file)
@@ -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,9 +227,9 @@ subsequent_board:
                        return;
                }
 
-               mtable = (struct mediatable *)
-                       kmalloc(sizeof(struct mediatable) + count*sizeof(struct medialeaf),
-                                       GFP_KERNEL);
+               mtable = kmalloc(sizeof(struct mediatable) +
+                                count * sizeof(struct medialeaf),
+                                GFP_KERNEL);
                if (mtable == NULL)
                        return;                         /* Horrible, impossible failure. */
                last_mediatable = tp->mtable = mtable;