From: Geert Uytterhoeven Date: Fri, 7 Jan 2011 12:24:00 +0000 (+0100) Subject: m68k/block: amiflop - Remove superfluous amiga_chip_alloc() cast X-Git-Tag: upstream/snapshot3+hdmi~11208^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=059718d572e8ad388313b863aff717623bb2552f;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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: Geert Uytterhoeven --- diff --git a/drivers/block/amiflop.c b/drivers/block/amiflop.c index 7888501..363855c 100644 --- a/drivers/block/amiflop.c +++ b/drivers/block/amiflop.c @@ -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; }