[PATCH 3/4] spi/pl022: remove dangling status check

Grant Likely grant.likely at secretlab.ca
Tue Feb 15 17:09:32 EST 2011


On Tue, Feb 08, 2011 at 01:03:41PM +0100, Linus Walleij wrote:
> From: Virupax Sadashivpetimath <virupax.sadashivpetimath at stericsson.com>
> 
> Signed-off-by: Virupax Sadashivpetimath <virupax.sadashivpetimath at stericsson.com>
> Signed-off-by: Linus Walleij <linus.walleij at linaro.org>

Applied, thanks.

g.

> ---
>  drivers/spi/amba-pl022.c |    2 --
>  1 files changed, 0 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/spi/amba-pl022.c b/drivers/spi/amba-pl022.c
> index 8fdf530..2b591f0 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,
> -- 
> 1.7.3.2
> 



More information about the linux-arm-kernel mailing list