提交 b9cd65ef 编写于 作者: N Niklas Söderlund 提交者: Xie XiuQi

media: rcar-vin: fix redeclaration of symbol

[ Upstream commit 4e673ed4 ]

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: 1284605d ("media: rcar-vin: Handle parallel subdev in link_notify")
Signed-off-by: NNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Acked-by: NJacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 1f1fde2b
...@@ -174,7 +174,6 @@ static int rvin_group_link_notify(struct media_link *link, u32 flags, ...@@ -174,7 +174,6 @@ static int rvin_group_link_notify(struct media_link *link, u32 flags,
if (csi_id == -ENODEV) { if (csi_id == -ENODEV) {
struct v4l2_subdev *sd; struct v4l2_subdev *sd;
unsigned int i;
/* /*
* Make sure the source entity subdevice is registered as * Make sure the source entity subdevice is registered as
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册