diff options
author | Tudor Ambarus <tudor.ambarus@linaro.org> | 2023-07-21 20:09:11 +0300 |
---|---|---|
committer | Tudor Ambarus <tudor.ambarus@linaro.org> | 2023-07-22 11:17:07 +0300 |
commit | abfac0f3a457dab837fc74e47f00d829976fb0a6 (patch) | |
tree | 030d12bc5fb884fcf1241427b78e2009669f9283 /drivers/mtd | |
parent | d4996700abc18efcd7d933ecfbc5f066153e74ff (diff) | |
download | linux-abfac0f3a457dab837fc74e47f00d829976fb0a6.tar.xz |
mtd: spi-nor: spansion: return method directly
Remove unnecessary handling of method's return code and return the
method directly.
Link: https://lore.kernel.org/r/20230721170911.13502-1-tudor.ambarus@linaro.org
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/spi-nor/spansion.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/mtd/spi-nor/spansion.c b/drivers/mtd/spi-nor/spansion.c index 6d6466a3436e..314667d4b8a8 100644 --- a/drivers/mtd/spi-nor/spansion.c +++ b/drivers/mtd/spi-nor/spansion.c @@ -656,13 +656,7 @@ static int s28hx_t_post_bfpt_fixup(struct spi_nor *nor, const struct sfdp_parameter_header *bfpt_header, const struct sfdp_bfpt *bfpt) { - int ret; - - ret = cypress_nor_set_addr_mode_nbytes(nor); - if (ret) - return ret; - - return 0; + return cypress_nor_set_addr_mode_nbytes(nor); } static void s28hx_t_late_init(struct spi_nor *nor) |