]> git.karo-electronics.de Git - linux-beck.git/commitdiff
spi/pl022: remove dangling status check
authorVirupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com>
Tue, 8 Feb 2011 12:03:41 +0000 (13:03 +0100)
committerGrant Likely <grant.likely@secretlab.ca>
Tue, 15 Feb 2011 22:09:03 +0000 (15:09 -0700)
Signed-off-by: Virupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/amba-pl022.c

index 8fdf530f9f50d961c21040c03834741f872b50db..2b591f0b92b4d745f29bc027c2d2e128024ff134 100644 (file)
@@ -1906,8 +1906,6 @@ static int pl022_setup(struct spi_device *spi)
            && ((pl022->master_info)->enable_dma)) {
                chip->enable_dma = true;
                dev_dbg(&spi->dev, "DMA mode set in controller state\n");
-               if (status < 0)
-                       goto err_config_params;
                SSP_WRITE_BITS(chip->dmacr, SSP_DMA_ENABLED,
                               SSP_DMACR_MASK_RXDMAE, 0);
                SSP_WRITE_BITS(chip->dmacr, SSP_DMA_ENABLED,