Skip to content

Commit

Permalink
mtd: spi-nor: spansion: return method directly
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tudor Ambarus committed Jul 22, 2023
1 parent d499670 commit abfac0f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions drivers/mtd/spi-nor/spansion.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit abfac0f

Please sign in to comment.