spi: fsl-spi: remove unused variable assignment
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 4 Dec 2014 19:28:11 +0000 (20:28 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 4 Dec 2014 22:44:05 +0000 (22:44 +0000)
Remove an unused variable assignment.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-spi.c

index 5e02c1f3e14514a91f03cd5009d42833648c4bd7..3b159364c4591c8129680456ff187e4fb7852467 100644 (file)
@@ -368,7 +368,6 @@ static int fsl_spi_do_one_msg(struct spi_master *master,
        list_for_each_entry(t, &m->transfers, transfer_list) {
                if ((first->bits_per_word != t->bits_per_word) ||
                        (first->speed_hz != t->speed_hz)) {
-                       status = -EINVAL;
                        dev_err(&spi->dev,
                                "bits_per_word/speed_hz should be same for the same SPI transfer\n");
                        return -EINVAL;