mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]>
This commit is contained in:
parent
9cd7b14831
commit
059718d572
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue