gpio: tegra186: remove unneeded loop in tegra186_gpio_init_route_mapping()
authorTom Rix <trix@redhat.com>
Wed, 25 Jan 2023 21:26:31 +0000 (13:26 -0800)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 2 Feb 2023 08:33:42 +0000 (09:33 +0100)
commit2e539b735d8683097846b486c0fb093da5f27fbb
treec1be96f6422d220b9d71cdb40aa97682fc9dbfab
parenteed5a3bfafe6840494f7752b5cecd2a610b54fef
gpio: tegra186: remove unneeded loop in tegra186_gpio_init_route_mapping()

Reviewing the j loop over num_irqs_per_bank, in the code previous
to the fixes: commit, every j was used. now only when j == 0.
If only j == 0 is used, there is no need for the loop.

Fixes: 210386804745 ("gpio: tegra186: Support multiple interrupts per bank")
Signed-off-by: Tom Rix <trix@redhat.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-tegra186.c