Staging: mt29f_spinand: Remove redundant cast on 'retval'
Subsystems (2)
PATCH 1/1 Staging: mt29f_spinand: Remove redundant cast on 'retval'
Remove the unneeded cast to 'int' since 'retval' is originally declared as 'int'.
Signed-off-by Eva Rachel Retuya <[email protected]>
--- drivers/staging/mt29f_spinand/mt29f_spinand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/mt29f_spinand/mt29f_spinand.c +1 -1
@@ -595,7 +595,7 @@ static int spinand_erase_block(struct spi_device *spi_nand, u16 block_id)if (retval <0 ) {dev_err (&spi_nand->dev,"error %d reading status register\n" , - (int )retval); + retval);return retval; }
Signature · 1 line
1.9.1