media: rcar-vin: fix redeclaration of symbol
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Wed, 26 Sep 2018 21:40:06 +0000 (17:40 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 Nov 2019 07:20:12 +0000 (08:20 +0100)
commita02bad04d1100b30b8acbe8e3499574e5aba8c5d
treea77ac22a140604fcc1cfff2248e45dac03125ccc
parent14dc7aeef3f4ada5adeab3a3836e4e28f9452c66
media: rcar-vin: fix redeclaration of symbol

[ Upstream commit 4e673ed4e2bfac00b3c3043a84e007874c17c84d ]

When adding support for parallel subdev for Gen3 it was missed that the
symbol 'i' in rvin_group_link_notify() was already declared, remove the
dupe as it's only used as a loop variable this have no functional
change. This fixes warning:

    rcar-core.c:117:52: originally declared here
    rcar-core.c:173:30: warning: symbol 'i' shadows an earlier one

Fixes: 1284605dc821cebd ("media: rcar-vin: Handle parallel subdev in link_notify")

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Acked-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/platform/rcar-vin/rcar-core.c