gpio: samsung: Add missing "break" statement
PATCH 1/1 gpio: samsung: Add missing "break" statement
Signed-off-by Alexander Shiyan <[email protected]>
--- drivers/gpio/gpio-samsung.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpio/gpio-samsung.c +1 -0
@@ -379,6 +379,7 @@ static int s5p64x0_gpio_setcfg_rbank(struct samsung_gpio_chip *chip,case 6 : shift = ((off +1 ) &7 ) *4 ; reg -=4 ; +break ;default : shift = ((off +1 ) &7 ) *4 ;break ;
Signature · 1 line
1.8.3.2
Quoted 10 lines · Alexander Shiyan
Signed-off-by Alexander Shiyan <[email protected]>--- drivers/gpio/gpio-samsung.c | 1 + 1 file changed, 1 insertion(+)drivers/gpio/gpio-samsung.c +0
-0
drivers/gpio/gpio-samsung.c static int s5p64x0_gpio_setcfg_rbank(struct samsung_gpio_chip *chip, · line 385
Quoted 7 lines
drivers/gpio/gpio-samsung.c +1
-0@@ -379,6 +379,7 @@ static int s5p64x0_gpio_setcfg_rbank(struct samsung_gpio_chip *chip,case 6 : shift = ((off +1 ) &7 ) *4 ; reg -=4 ; +break ;default : shift = ((off +1 ) &7 ) *4 ;break ;
Obviously no semantic effect so patch applied as it adds code readability.
But I'm wondering if default should not be doing reg -= 4; as well?
Yours,
Linus Walleij