at91: add kernel support for sama7g5 soc
[openwrt/staging/ldir.git] / target / linux / at91 / patches-5.10 / 156-media-atmel-atmel-isc-Remove-redundant-assignment-to.patch
1 From b074b4695004b793a9199716295cb76da6c41686 Mon Sep 17 00:00:00 2001
2 From: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
3 Date: Mon, 17 May 2021 12:07:48 +0200
4 Subject: [PATCH 156/247] media: atmel: atmel-isc: Remove redundant assignment
5 to i
6
7 Variable i is being assigned a value however the assignment is
8 never read, so this redundant assignment can be removed.
9
10 Clean up the following clang-analyzer warning:
11
12 drivers/media/platform/atmel/atmel-isc-base.c:975:2: warning: Value
13 stored to 'i' is never read [clang-analyzer-deadcode.DeadStores].
14
15 Reported-by: Abaci Robot <abaci@linux.alibaba.com>
16 Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
17 Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
18 Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
19 ---
20 drivers/media/platform/atmel/atmel-isc-base.c | 1 -
21 1 file changed, 1 deletion(-)
22
23 diff --git a/drivers/media/platform/atmel/atmel-isc-base.c b/drivers/media/platform/atmel/atmel-isc-base.c
24 index ce8e1351fa53..a017572c870c 100644
25 --- a/drivers/media/platform/atmel/atmel-isc-base.c
26 +++ b/drivers/media/platform/atmel/atmel-isc-base.c
27 @@ -972,7 +972,6 @@ static int isc_enum_fmt_vid_cap(struct file *file, void *priv,
28
29 index -= ARRAY_SIZE(controller_formats);
30
31 - i = 0;
32 supported_index = 0;
33
34 for (i = 0; i < ARRAY_SIZE(formats_list); i++) {
35 --
36 2.32.0
37