Skip to content

Commit 882518d

Browse files
Colin Ian KingLinus Walleij
authored andcommitted
pinctrl: actions: fix missing break in PIN_CONFIG_DRIVE_STRENGTH case.
There is a missing break in case PIN_CONFIG_DRIVE_STRENGTH leading to a fall-through to the PIN_CONFIG_SLEW_RATE case that performs different checks against *arg. This looks like an unintentional missing break so add in the break. Detected by CoverityScan, CID#1468456, 1468459 ("Missing break in switch") Fixes: 513d7a2f7e0f ("pinctrl: actions: Add Actions S900 pinctrl driver") Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 07ef798 commit 882518d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/pinctrl/actions/pinctrl-owl.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,7 @@ static int owl_group_pinconf_arg2val(const struct owl_pingroup *g,
406406
default:
407407
return -EINVAL;
408408
}
409+
break;
409410
case PIN_CONFIG_SLEW_RATE:
410411
if (*arg)
411412
*arg = OWL_PINCONF_SLEW_FAST;
@@ -441,6 +442,7 @@ static int owl_group_pinconf_val2arg(const struct owl_pingroup *g,
441442
default:
442443
return -EINVAL;
443444
}
445+
break;
444446
case PIN_CONFIG_SLEW_RATE:
445447
if (*arg)
446448
*arg = 1;

0 commit comments

Comments
 (0)