We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd043c6 commit 6f6536aCopy full SHA for 6f6536a
drivers/mtd/devices/st_spi_fsm.c
@@ -2084,15 +2084,12 @@ static int stfsm_probe(struct platform_device *pdev)
2084
* Configure READ/WRITE/ERASE sequences according to platform and
2085
* device flags.
2086
*/
2087
- if (info->config) {
+ if (info->config)
2088
ret = info->config(fsm);
2089
- if (ret)
2090
- goto err_clk_unprepare;
2091
- } else {
+ else
2092
ret = stfsm_prepare_rwe_seqs_default(fsm);
2093
2094
2095
- }
+ if (ret)
+ goto err_clk_unprepare;
2096
2097
fsm->mtd.name = info->name;
2098
fsm->mtd.dev.parent = &pdev->dev;
0 commit comments