mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 06:01:57 +00:00
mtd/rfd_ftl: don't cast away the type when calling add_mtd_blktrans_dev
Pass the actual mtd_blktrans_dev instead of casting the containing structure to void *. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20210823073359.705281-5-hch@lst.de
This commit is contained in:
parent
ffd18c97fc
commit
a0faf5fdfb
@ -783,7 +783,7 @@ static void rfd_ftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd)
|
||||
printk(KERN_INFO PREFIX "name: '%s' type: %d flags %x\n",
|
||||
mtd->name, mtd->type, mtd->flags);
|
||||
|
||||
if (!add_mtd_blktrans_dev((void*)part))
|
||||
if (!add_mtd_blktrans_dev(&part->mbd))
|
||||
return;
|
||||
}
|
||||
out:
|
||||
|
Loading…
Reference in New Issue
Block a user