]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
Staging: mt29f_spinand: Remove redundant cast on 'retval'
authorEva Rachel Retuya <eraretuya@gmail.com>
Thu, 22 Oct 2015 17:09:56 +0000 (01:09 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 01:34:23 +0000 (18:34 -0700)
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>
drivers/staging/mt29f_spinand/mt29f_spinand.c

index 3d1696c8e9e5e35cee967c20fc1eaaf380301de1..a8292a1a8e41226835cb9aa83e5a020e525b239a 100644 (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;
                }