Skip to contentSkip to conversation

gpio: samsung: Add missing "break" statement

PATCH In review Alexander Shiyan 2 participants 2 messages Mar 22, 2014 – Mar 27, 2014 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpio: samsung: Add missing "break" statement

---
 drivers/gpio/gpio-samsung.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpio/gpio-samsung.c +1 -0
index a85e00b..07105ee 100644
@@ -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
#1 lore raw
Quoted 10 lines · Alexander Shiyan
---
 drivers/gpio/gpio-samsung.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpio/gpio-samsung.c +0 -0
index a85e00b..07105ee 100644

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