Skip to contentSkip to conversation

Staging: mt29f_spinand: Remove redundant cast on 'retval'

PATCH New Eva Rachel Retuya 1 participant 1 message Oct 22, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: mt29f_spinand: Remove redundant cast on 'retval'

Remove the unneeded cast to 'int' since 'retval' is originally declared as 'int'.

---
 drivers/staging/mt29f_spinand/mt29f_spinand.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/mt29f_spinand/mt29f_spinand.c +1 -1
index 7691417..4165fb4 100644
@@ -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