mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
pinctrl: renesas: rzt2h: Remove unused variable in rzt2h_pinctrl_register()
Variable 'j' in rzt2h_pinctrl_register() is incremented during pin descriptor initialization but never used afterwards. Remove the unused variable and the associated dead code. Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://patch.msgid.link/20260513115312.1574367-2-prabhakar.mahadev-lad.rj@bp.renesas.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
This commit is contained in:
parent
c7c8352fe5
commit
ccf707ca74
|
|
@ -1140,7 +1140,7 @@ static int rzt2h_pinctrl_register(struct rzt2h_pinctrl *pctrl)
|
|||
struct pinctrl_desc *desc = &pctrl->desc;
|
||||
struct device *dev = pctrl->dev;
|
||||
struct pinctrl_pin_desc *pins;
|
||||
unsigned int i, j;
|
||||
unsigned int i;
|
||||
int ret;
|
||||
|
||||
desc->name = DRV_NAME;
|
||||
|
|
@ -1157,11 +1157,9 @@ static int rzt2h_pinctrl_register(struct rzt2h_pinctrl *pctrl)
|
|||
pctrl->pins = pins;
|
||||
desc->pins = pins;
|
||||
|
||||
for (i = 0, j = 0; i < pctrl->data->n_port_pins; i++) {
|
||||
for (i = 0; i < pctrl->data->n_port_pins; i++) {
|
||||
pins[i].number = i;
|
||||
pins[i].name = rzt2h_gpio_names[i];
|
||||
if (i && !(i % RZT2H_PINS_PER_PORT))
|
||||
j++;
|
||||
}
|
||||
|
||||
ret = devm_pinctrl_register_and_init(dev, desc, pctrl, &pctrl->pctl);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user