]> git.sur5r.net Git - u-boot/commitdiff
pwm: imx: Remove unreachable code
authorAxel Lin <axel.lin@ingics.com>
Sat, 23 May 2015 07:17:30 +0000 (15:17 +0800)
committerStefano Babic <sbabic@denx.de>
Tue, 26 May 2015 12:13:12 +0000 (14:13 +0200)
The break after return is unreachable code, remove it.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Stefano Babic <sbabic@denx.de>
Acked-by: Heiko Schocher <hs@denx.de>
drivers/pwm/pwm-imx-util.c

index 79d86028de275962c78b3e728d7c420ac69b4a2b..f92c3700f8eaf686ca17f4116dffb00ec5745fb8 100644 (file)
@@ -21,16 +21,12 @@ struct pwm_regs *pwm_id_to_reg(int pwm_id)
        switch (pwm_id) {
        case 0:
                return (struct pwm_regs *)PWM1_BASE_ADDR;
-               break;
        case 1:
                return (struct pwm_regs *)PWM2_BASE_ADDR;
-               break;
        case 2:
                return (struct pwm_regs *)PWM3_BASE_ADDR;
-               break;
        case 3:
                return (struct pwm_regs *)PWM4_BASE_ADDR;
-               break;
        default:
                printf("unknown pwm_id: %d\n", pwm_id);
                break;