Commit 6f6536a
mtd: st_spi_fsm: Simplify error checking in .probe() a bit
Instead of ending each if branch with the same check, do it once
unconditionally after the if block.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220607152458.232847-5-u.kleine-koenig@pengutronix.de1 parent cd043c6 commit 6f6536a
1 file changed
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2084 | 2084 | | |
2085 | 2085 | | |
2086 | 2086 | | |
2087 | | - | |
| 2087 | + | |
2088 | 2088 | | |
2089 | | - | |
2090 | | - | |
2091 | | - | |
| 2089 | + | |
2092 | 2090 | | |
2093 | | - | |
2094 | | - | |
2095 | | - | |
| 2091 | + | |
| 2092 | + | |
2096 | 2093 | | |
2097 | 2094 | | |
2098 | 2095 | | |
| |||
0 commit comments