mtd: rawnand: mpc5121: Check before clk_disable_unprepare() not needed
authorPhil Edworthy <phil.edworthy@renesas.com>
Thu, 12 May 2022 18:50:33 +0000 (19:50 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 16 May 2022 16:34:38 +0000 (18:34 +0200)
commit5794465b6fcfbaed304c8ebe8990f858eb2ed9a2
tree2d988766bace2e1dcba8594f63ffe1be3986a33c
parent6879854d16341ab67d61580fa988ad1b7e7cc040
mtd: rawnand: mpc5121: 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/20220512185033.46901-1-phil.edworthy@renesas.com
drivers/mtd/nand/raw/mpc5121_nfc.c