Commit 6879854
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.com1 parent 66d7a40 commit 6879854
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
911 | 911 | | |
912 | 912 | | |
913 | 913 | | |
914 | | - | |
915 | | - | |
| 914 | + | |
916 | 915 | | |
917 | 916 | | |
918 | 917 | | |
| |||
921 | 920 | | |
922 | 921 | | |
923 | 922 | | |
924 | | - | |
925 | | - | |
| 923 | + | |
926 | 924 | | |
927 | 925 | | |
928 | 926 | | |
| |||
0 commit comments