]> git.karo-electronics.de Git - linux-beck.git/commitdiff
spi: pl022: Remove redundant break
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 2 Sep 2013 06:26:21 +0000 (11:56 +0530)
committerMark Brown <broonie@linaro.org>
Mon, 16 Sep 2013 23:21:32 +0000 (00:21 +0100)
'break' immediately after return has no effect.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-pl022.c

index 9c511a954d213cfec829ebcc0431b80cf93541f9..1ff2d8e78f519570f5d4105438ea50edd239f53d 100644 (file)
@@ -1619,7 +1619,6 @@ static int verify_controller_parameters(struct pl022 *pl022,
                dev_err(&pl022->adev->dev,
                        "RX FIFO Trigger Level is configured incorrectly\n");
                return -EINVAL;
-               break;
        }
        switch (chip_info->tx_lev_trig) {
        case SSP_TX_1_OR_MORE_EMPTY_LOC:
@@ -1645,7 +1644,6 @@ static int verify_controller_parameters(struct pl022 *pl022,
                dev_err(&pl022->adev->dev,
                        "TX FIFO Trigger Level is configured incorrectly\n");
                return -EINVAL;
-               break;
        }
        if (chip_info->iface == SSP_INTERFACE_NATIONAL_MICROWIRE) {
                if ((chip_info->ctrl_len < SSP_BITS_4)