Commit 059718d5 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven

m68k/block: amiflop - Remove superfluous amiga_chip_alloc() cast

amiga_chip_alloc() returns a void *, so we don't need a cast.
Also clean up coding style while we're at it.
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
parent 9cd7b148
...@@ -1768,8 +1768,8 @@ static int __init amiga_floppy_probe(struct platform_device *pdev) ...@@ -1768,8 +1768,8 @@ static int __init amiga_floppy_probe(struct platform_device *pdev)
return -EBUSY; return -EBUSY;
ret = -ENOMEM; ret = -ENOMEM;
if ((raw_buf = (char *)amiga_chip_alloc (RAW_BUF_SIZE, "Floppy")) == raw_buf = amiga_chip_alloc(RAW_BUF_SIZE, "Floppy");
NULL) { if (!raw_buf) {
printk("fd: cannot get chip mem buffer\n"); printk("fd: cannot get chip mem buffer\n");
goto out_blkdev; goto out_blkdev;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment