From 4cd1a64a3b2a1290e6abb560db0dcc8260d1e274 Mon Sep 17 00:00:00 2001 From: Eva Rachel Retuya Date: Fri, 23 Oct 2015 01:09:56 +0800 Subject: [PATCH] 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 Signed-off-by: Greg Kroah-Hartman --- drivers/staging/mt29f_spinand/mt29f_spinand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/mt29f_spinand/mt29f_spinand.c b/drivers/staging/mt29f_spinand/mt29f_spinand.c index 3d1696c8e9e5..a8292a1a8e41 100644 --- a/drivers/staging/mt29f_spinand/mt29f_spinand.c +++ b/drivers/staging/mt29f_spinand/mt29f_spinand.c @@ -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; } -- 2.20.1