mtd: spi-nor: Void return type for spi_nor_clear_sr/fsr()

spi_nor_clear_sr() and spi_nor_clear_fsr() are called just in case
of errors. The callers didn't check their return value, make them
of type void.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
This commit is contained in:
Tudor Ambarus 2019-11-02 11:23:32 +00:00
parent cd1ebe1ca0
commit abd494bb07
No known key found for this signature in database
GPG Key ID: 4B554F47A58D14E9
1 changed files with 2 additions and 6 deletions

View File

@ -714,7 +714,7 @@ static int s3an_sr_ready(struct spi_nor *nor)
return !!(nor->bouncebuf[0] & XSR_RDY);
}
static int spi_nor_clear_sr(struct spi_nor *nor)
static void spi_nor_clear_sr(struct spi_nor *nor)
{
int ret;
@ -733,8 +733,6 @@ static int spi_nor_clear_sr(struct spi_nor *nor)
if (ret)
dev_dbg(nor->dev, "error %d clearing SR\n", ret);
return ret;
}
static int spi_nor_sr_ready(struct spi_nor *nor)
@ -758,7 +756,7 @@ static int spi_nor_sr_ready(struct spi_nor *nor)
return !(nor->bouncebuf[0] & SR_WIP);
}
static int spi_nor_clear_fsr(struct spi_nor *nor)
static void spi_nor_clear_fsr(struct spi_nor *nor)
{
int ret;
@ -777,8 +775,6 @@ static int spi_nor_clear_fsr(struct spi_nor *nor)
if (ret)
dev_dbg(nor->dev, "error %d clearing FSR\n", ret);
return ret;
}
static int spi_nor_fsr_ready(struct spi_nor *nor)