Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2813000pxj; Mon, 17 May 2021 10:19:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIO45OdFYM2vnvb8xuYzDYjMQvopEjkGQihmGJLfjwbG/EmjDD9DTkqwRokIVqD1P++uVV X-Received: by 2002:a50:8fe6:: with SMTP id y93mr1353186edy.224.1621271976174; Mon, 17 May 2021 10:19:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621271976; cv=none; d=google.com; s=arc-20160816; b=avdORZm2b73nGKoR1cUvn8KtavPJ5la0GvD2oOlX9CIXjBcpNZrgb79LMof6HQBX/e ZPX6Qsu2U/nJuy3i6ciJ/0cD0R7CCe4Sci4ij6aMgVKhuOLSYCLP2Y1WNLMF4gaV9vWM Piexn3VzigJL/KnWGQ/MCsNZ5EbpHVwfhIq7vyb4nKkREzNTUHzDumwsvMBfArO7QNNs fR5CyyHye5abEXCDWTHRJLXTWGOU6ICmV+SAHWEAa48NawNRyDYosI1QWRCuv46ppigJ OZJ44RZtsoLibAKVv82rB7elLQqkQKvMefazBRGjEGD2VHjEOi8O4UV4sAOVryncY87S adEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=LAcfNITSYrTWmfi8Ao/Y/b9XeppiVnso3MfyWt8ndX0=; b=n3al92A/xqnkHEzrIog9kH+OJ0v9EJjqw+yA4v9RG3voa49hQOesWqSRFtw5YnHKF3 tiQ310SC2CLVrC1MOt7okS5gYBKTUvW2/Owv7TKfsVV1APiz5LhJGmY4WcsQS+JA2pDp Q9nDNnnuua2BDdIZUI6ohUo4QCnQNJlBmByfZUafm0OBM7jFAxRl1sMgqgY3tSe/oWWt wKXAzXxQSpcXD/ncWaFxXrB4hhu1XeGwYBYcCGeJgAAyOz8N6ZgSWmvIAmX/KtU5JuU+ /s1H7Nt7FZAC9zxAFwyjEOEi3zoiMG843oBvJLi2U9kWw5bmGbeTNyNJON+Y7gouNF0D Qm3g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ha8si5865402ejb.488.2021.05.17.10.19.12; Mon, 17 May 2021 10:19:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236329AbhEQKJc (ORCPT + 99 others); Mon, 17 May 2021 06:09:32 -0400 Received: from out30-42.freemail.mail.aliyun.com ([115.124.30.42]:57142 "EHLO out30-42.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236141AbhEQKJ1 (ORCPT ); Mon, 17 May 2021 06:09:27 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R631e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04426;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=9;SR=0;TI=SMTPD_---0UZ78uCN_1621246070; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UZ78uCN_1621246070) by smtp.aliyun-inc.com(127.0.0.1); Mon, 17 May 2021 18:08:08 +0800 From: Jiapeng Chong To: eugen.hristev@microchip.com Cc: mchehab@kernel.org, nicolas.ferre@microchip.com, alexandre.belloni@bootlin.com, ludovic.desroches@microchip.com, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] media: atmel: atmel-isc: Remove redundant assignment to i Date: Mon, 17 May 2021 18:07:48 +0800 Message-Id: <1621246068-58221-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Variable i is being assigned a value however the assignment is never read, so this redundant assignment can be removed. Clean up the following clang-analyzer warning: drivers/media/platform/atmel/atmel-isc-base.c:975:2: warning: Value stored to 'i' is never read [clang-analyzer-deadcode.DeadStores]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/media/platform/atmel/atmel-isc-base.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/platform/atmel/atmel-isc-base.c b/drivers/media/platform/atmel/atmel-isc-base.c index ce8e135..a017572c 100644 --- a/drivers/media/platform/atmel/atmel-isc-base.c +++ b/drivers/media/platform/atmel/atmel-isc-base.c @@ -972,7 +972,6 @@ static int isc_enum_fmt_vid_cap(struct file *file, void *priv, index -= ARRAY_SIZE(controller_formats); - i = 0; supported_index = 0; for (i = 0; i < ARRAY_SIZE(formats_list); i++) { -- 1.8.3.1