m68k/block: amiflop - Remove superfluous amiga_chip_alloc() cast
authorGeert Uytterhoeven <geert@linux-m68k.org>
Fri, 7 Jan 2011 12:24:00 +0000 (13:24 +0100)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Wed, 16 Mar 2011 18:11:25 +0000 (19:11 +0100)
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: Geert Uytterhoeven <geert@linux-m68k.org>
drivers/block/amiflop.c

index 7888501ad9ee1af078b47695a00c8074011797c3..363855ca376e6792f9684e44a4eea3b1c2abcb2d 100644 (file)
@@ -1768,8 +1768,8 @@ static int __init amiga_floppy_probe(struct platform_device *pdev)
                return -EBUSY;
 
        ret = -ENOMEM;
-       if ((raw_buf = (char *)amiga_chip_alloc (RAW_BUF_SIZE, "Floppy")) ==
-           NULL) {
+       raw_buf = amiga_chip_alloc(RAW_BUF_SIZE, "Floppy");
+       if (!raw_buf) {
                printk("fd: cannot get chip mem buffer\n");
                goto out_blkdev;
        }