]> git.baikalelectronics.ru Git - kernel.git/commit
mtd_blkdevs: simplify blktrans_dev_get
authorChristoph Hellwig <hch@lst.de>
Mon, 23 Aug 2021 07:33:56 +0000 (09:33 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 23 Aug 2021 08:01:09 +0000 (10:01 +0200)
commitba7c1f91d84fcb8f677153afca35484d3f66ea21
tree8da3a7a6f6304f8b0679bdba57572e71e48fe914
parent9c6dd15d160209f0d33c4f666118690f683adf82
mtd_blkdevs: simplify blktrans_dev_get

->private_data is set before the disk is added and never cleared, so don't
bother trying to handle a NULL pointer there.

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-6-hch@lst.de
drivers/mtd/mtd_blkdevs.c