mtd: rawnand: rockchip: Check before clk_disable_unprepare() not needed
authorPhil Edworthy <phil.edworthy@renesas.com>
Thu, 12 May 2022 18:45:58 +0000 (19:45 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 16 May 2022 16:34:36 +0000 (18:34 +0200)
commit6879854d16341ab67d61580fa988ad1b7e7cc040
tree9faf8b05e3d9ffc6949c29cc37829497a75084a4
parent66d7a40beb413815a5b1adbc1558200f5b18d817
mtd: rawnand: rockchip: Check before clk_disable_unprepare() not needed

All code in clk_disable_unprepare() already checks the clk ptr using
IS_ERR_OR_NULL so there is no need to check it again before calling it.
A lot of other drivers already rely on this behaviour, so it's safe
to do so here.

Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220512184558.45966-1-phil.edworthy@renesas.com
drivers/mtd/nand/raw/rockchip-nand-controller.c