Skip to contentSkip to conversation

gpio: samsung: Remove double variable assignment

PATCH In review Alexander Shiyan 2 participants 2 messages Feb 15, 2014 – Feb 24, 2014 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpio: samsung: Remove double variable assignment

---
 drivers/gpio/gpio-samsung.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpio/gpio-samsung.c +0 -1
index a85e00b..929f31e 100644
@@ -377,7 +377,6 @@ static int s5p64x0_gpio_setcfg_rbank(struct samsung_gpio_chip *chip,
 		reg -= 4;
 		break;
 	case 6:
-		shift = ((off + 1) & 7) * 4;
 		reg -= 4;
 	default:
 		shift = ((off + 1) & 7) * 4;
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 deletion(-)
drivers/gpio/gpio-samsung.c +0 -0
index a85e00b..929f31e 100644

drivers/gpio/gpio-samsung.c static int s5p64x0_gpio_setcfg_rbank(struct samsung_gpio_chip *chip, · line 382

Quoted 7 lines
drivers/gpio/gpio-samsung.c +0 -1
@@ -377,7 +377,6 @@ static int s5p64x0_gpio_setcfg_rbank(struct samsung_gpio_chip *chip,
                reg -= 4;
                break;
        case 6:
-               shift = ((off + 1) & 7) * 4;
                reg -= 4;
        default:
                shift = ((off + 1) & 7) * 4;

This makes perfect sense from a semantic point of view.

But I'm just worried that it may be a syntactic error after all, such as a break; missing in case 6?

What does Samsung folks say about this?

Yours,
Linus Walleij