]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - sound/oss/dmasound/dmasound_awacs.c
[PATCH] sound: Remove unneeded kmalloc() return value casts
[mirror_ubuntu-zesty-kernel.git] / sound / oss / dmasound / dmasound_awacs.c
index 6ba8d6f45fe848ecbcf288a46f3410fc51cd88ba..3bbc8105e9f10dfedcf362fc86c3361609590d90 100644 (file)
@@ -2798,7 +2798,7 @@ __init setup_beep(void)
                        DBDMA_ALIGN(beep_dbdma_cmd_space);
        /* set up emergency dbdma cmd */
        emergency_dbdma_cmd = beep_dbdma_cmd+1 ;
-       beep_buf = (short *) kmalloc(BEEP_BUFLEN * 4, GFP_KERNEL);
+       beep_buf = kmalloc(BEEP_BUFLEN * 4, GFP_KERNEL);
        if (beep_buf == NULL) {
                printk(KERN_ERR "dmasound_pmac: no memory for beep buffer\n");
                kfree(beep_dbdma_cmd_space) ;