]> err.no Git - linux-2.6/blobdiff - drivers/macintosh/apm_emu.c
[PATCH] user of the jiffies rounding patch: ATA subsystem
[linux-2.6] / drivers / macintosh / apm_emu.c
index 8862a83b8d8480451453fc7e6625350ce7f46cb2..4300c628f8af813d58113273f1402baba69bd87c 100644 (file)
@@ -321,7 +321,7 @@ static int do_open(struct inode * inode, struct file * filp)
 {
        struct apm_user *       as;
 
-       as = (struct apm_user *)kmalloc(sizeof(*as), GFP_KERNEL);
+       as = kmalloc(sizeof(*as), GFP_KERNEL);
        if (as == NULL) {
                printk(KERN_ERR "apm: cannot allocate struct of size %d bytes\n",
                       sizeof(*as));