Skip to content

Commit abfac0f

Browse files
committed
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>
1 parent d499670 commit abfac0f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

drivers/mtd/spi-nor/spansion.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -656,13 +656,7 @@ static int s28hx_t_post_bfpt_fixup(struct spi_nor *nor,
656656
const struct sfdp_parameter_header *bfpt_header,
657657
const struct sfdp_bfpt *bfpt)
658658
{
659-
int ret;
660-
661-
ret = cypress_nor_set_addr_mode_nbytes(nor);
662-
if (ret)
663-
return ret;
664-
665-
return 0;
659+
return cypress_nor_set_addr_mode_nbytes(nor);
666660
}
667661

668662
static void s28hx_t_late_init(struct spi_nor *nor)

0 commit comments

Comments
 (0)