[PATCH] getting rid of all casts of k[cmz]alloc() calls
[linux-2.6-block.git] / drivers / mtd / devices / mtd_dataflash.c
index 5db71604592789492a5718150d9659d1d0455b77..0a7e86859bf10677de7d3bc4227d84ed098303ba 100644 (file)
@@ -459,7 +459,7 @@ add_dataflash(struct spi_device *spi, char *name,
        struct mtd_info                 *device;
        struct flash_platform_data      *pdata = spi->dev.platform_data;
 
-       priv = (struct dataflash *) kzalloc(sizeof *priv, GFP_KERNEL);
+       priv = kzalloc(sizeof *priv, GFP_KERNEL);
        if (!priv)
                return -ENOMEM;