Re: [PATCH RESEND u-boot-spi 3/8] mtd: spi-nor-core: Don't overwrite return value if it is non-zero

2021-07-20 Thread Simon Glass
On Wed, 14 Jul 2021 at 17:51, Marek Behún wrote: > > The cleanup code of the spi_nor_erase() function overwrites the ret > variable with return value of clean_bar(), even if the ret variable is > already set. Fix this. > > Signed-off-by: Marek Behún > Tested-by: Masami Hiramatsu > --- >

[PATCH RESEND u-boot-spi 3/8] mtd: spi-nor-core: Don't overwrite return value if it is non-zero

2021-07-14 Thread Marek Behún
The cleanup code of the spi_nor_erase() function overwrites the ret variable with return value of clean_bar(), even if the ret variable is already set. Fix this. Signed-off-by: Marek Behún Tested-by: Masami Hiramatsu --- drivers/mtd/spi/spi-nor-core.c | 6 -- 1 file changed, 4