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 <eraretuya@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Eva Rachel Retuya 2015-10-23 01:09:56 +08:00 committed by Greg Kroah-Hartman
parent 74f63bd664
commit 4cd1a64a3b

View file

@ -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;
}