]> err.no Git - linux-2.6/blobdiff - drivers/ide/ide-floppy.c
[PATCH] getting rid of all casts of k[cmz]alloc() calls
[linux-2.6] / drivers / ide / ide-floppy.c
index e3a267622bb6073fdcb5911dfca2c4178bdf670f..d33717c8afd466731855e4a42f01d65c9ee85b2e 100644 (file)
@@ -2147,7 +2147,7 @@ static int ide_floppy_probe(ide_drive_t *drive)
                printk("ide-floppy: passing drive %s to ide-scsi emulation.\n", drive->name);
                goto failed;
        }
-       if ((floppy = (idefloppy_floppy_t *) kzalloc (sizeof (idefloppy_floppy_t), GFP_KERNEL)) == NULL) {
+       if ((floppy = kzalloc(sizeof (idefloppy_floppy_t), GFP_KERNEL)) == NULL) {
                printk (KERN_ERR "ide-floppy: %s: Can't allocate a floppy structure\n", drive->name);
                goto failed;
        }