From patchwork Mon May 17 10:07:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiapeng Chong X-Patchwork-Id: 12261505 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 91563C433B4 for ; Mon, 17 May 2021 10:20:19 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 53B4D61184 for ; Mon, 17 May 2021 10:20:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 53B4D61184 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive :List-Unsubscribe:List-Id:Message-Id:Date:Subject:To:From:Reply-To:Content-ID :Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To: Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=nizRwzxXcTyBnxVXMQR6vHyFBj4f2CFkJFwETwZQ5IU=; b=DRTILEie0X/ijFL06lqEi3P0c3 pcEwm7ELUGYEMZDLSy108Sw9rSa6XJef1lHdr4jCCzbnnPo5eXZzEl8Ob+KbOdyM3Y+yDdnVI+Wla /TFNJOY63E7Pk3HZfE/ASLjs8GmxmmP3pdhfNRJannZX12AlcKt3SWAohZIlPSpNQGxxosWFIlVyL lj0uRqqAR+1ZFUSBamWiDGUGrpdkkqqSRVoJOLuwyl7sBx5E62RYk/cCo8f3gDX5FtCP1mUyeoqKP bFQE4RgAj0cReyNDuayeOs1FPerVwpOUTRHyxaJQuyrGByWWi96vDG/zrdJ7pUefluICuV6mwq99s fy6yfv6Q==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1liaKC-00EXUP-7e; Mon, 17 May 2021 10:18:12 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liaAg-00EWH7-Gn for linux-arm-kernel@desiato.infradead.org; Mon, 17 May 2021 10:09:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:In-Reply-To:References; bh=LAcfNITSYrTWmfi8Ao/Y/b9XeppiVnso3MfyWt8ndX0=; b=mGis32O2cVfMG1GFssuS+5BEf1 2GytTzvYsyzA5YsQh2RUHPEqRDbH6HbgZRQ3aKbiys+JVNJfbBSQG5Xh3ceQt+STuA7zCu/k4sGf1 I2fBCfom2b8qPflQJhxm1DjRXfAO2YyezRIxeKWa9pEUQORniyohHT23k9HP423mj+7bIP/IoByk1 TZRs/Hi08PmXIGQuOHlsxc5a9eCytUVwPlELTfkWpqxPbFtc6+GT+PV5ygivvmBEsr/OfsAeyQka9 42WodkgRPq4MMqYIsb8AjmZh2x4mqCJvA/zszFA2gPRN2t0t5LubW8sImdX4ouVDFjPKvl9xdBnAr ZpevaMhg==; Received: from out30-133.freemail.mail.aliyun.com ([115.124.30.133]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liaAY-00DfPJ-Ps for linux-arm-kernel@lists.infradead.org; Mon, 17 May 2021 10:08:20 +0000 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210517_030815_014052_BE82E05E X-CRM114-Status: UNSURE ( 8.65 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jiapeng Chong , alexandre.belloni@bootlin.com, linux-kernel@vger.kernel.org, ludovic.desroches@microchip.com, mchehab@kernel.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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++) {