diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-05-23 15:17:30 +0800 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2015-05-26 14:13:12 +0200 |
commit | 48dbc74ea53396e39b3f59ec1a0049444610f3dd (patch) | |
tree | 212d5f010b50a1349668cf678a05d106d8043d6e /drivers/pwm | |
parent | 16b0c0ce83ec3f8bf96de69b1c84214cacc39416 (diff) | |
download | u-boot-48dbc74ea53396e39b3f59ec1a0049444610f3dd.zip u-boot-48dbc74ea53396e39b3f59ec1a0049444610f3dd.tar.gz u-boot-48dbc74ea53396e39b3f59ec1a0049444610f3dd.tar.bz2 |
pwm: imx: Remove unreachable code
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>
Diffstat (limited to 'drivers/pwm')
-rw-r--r-- | drivers/pwm/pwm-imx-util.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/pwm/pwm-imx-util.c b/drivers/pwm/pwm-imx-util.c index 79d86028..f92c370 100644 --- a/drivers/pwm/pwm-imx-util.c +++ b/drivers/pwm/pwm-imx-util.c @@ -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; |