summaryrefslogtreecommitdiff
path: root/drivers/spi/amba-pl022.c
diff options
context:
space:
mode:
authorVirupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com>2011-02-08 15:03:41 +0300
committerGrant Likely <grant.likely@secretlab.ca>2011-02-16 01:09:03 +0300
commitd63636d34761e1146fc7d4ef896ca93c8073ef88 (patch)
tree225c044147fb6948538eeb644ab346c0c3743eeb /drivers/spi/amba-pl022.c
parent808f1037ab3fbf75d25026ad8e175c57927cdb3a (diff)
downloadlinux-d63636d34761e1146fc7d4ef896ca93c8073ef88.tar.xz
spi/pl022: remove dangling status check
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>
Diffstat (limited to 'drivers/spi/amba-pl022.c')
-rw-r--r--drivers/spi/amba-pl022.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/amba-pl022.c b/drivers/spi/amba-pl022.c
index 8fdf530f9f50..2b591f0b92b4 100644
--- a/drivers/spi/amba-pl022.c
+++ b/drivers/spi/amba-pl022.c
@@ -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,