From patchwork Wed Nov 7 06:24:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Chancellor X-Patchwork-Id: 10671881 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2CF2D15A6 for ; Wed, 7 Nov 2018 06:25:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 10AFF28305 for ; Wed, 7 Nov 2018 06:25:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 04ED32862A; Wed, 7 Nov 2018 06:25:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B100828305 for ; Wed, 7 Nov 2018 06:25:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726544AbeKGPyf (ORCPT ); Wed, 7 Nov 2018 10:54:35 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:37562 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726194AbeKGPyf (ORCPT ); Wed, 7 Nov 2018 10:54:35 -0500 Received: by mail-wm1-f66.google.com with SMTP id p2-v6so14518947wmc.2; Tue, 06 Nov 2018 22:25:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=aR49N8yjTibP5fGwJiI0weDQN1eLl7ZUPmm8Gnaamls=; b=UJtOtHnU3j/wWHB8hT2V0JrU9Y6A161as69O0J0PdpesufJq+pIkZT31ae666lAF8z 1Ayk4yEs85cAEfs7qunshh50vMI2PgqIpBhj6wckKu1I3TwxOTFZrwUrnEWazSGSFe7+ FDDHEzBuexaJQh3uc1IroOfL/eKJHhicSuemgSrSIR7T4L1ACYwOwE+r5UnBSpNFWlGP eKg5E9lJfeXQjbBo5LbfHv4fyBWe0PcgaNc+GhrnCHB5MA4SjNn0MSQSady+XyZJbzGg oZKL0BzThCJ72pmbA/6UfjXSlLPS5yNRu1fHye9Bca4Ib1cVRAMXABPZMhYgeJrkQfz5 jhKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=aR49N8yjTibP5fGwJiI0weDQN1eLl7ZUPmm8Gnaamls=; b=ZQ8/7AFQoACeKfDaF0CrHbUk/OH6PoHQroemhM/4X+geUj3UmMk1yZVAlICj+IGyM1 ctr6lK9dW2DPmpYE9QNgEIcaabkTVRag38L3PMyLPCCd4wGf1+FB7TYGfhLYuaZ+vlav svNxmyYXI7KjMsfFm/SVV2ew5J24FyN0heq355vr3NPLo/rN6H9wqdb8t+jM/RhIX5ys rUuRPzW2XwufX05IKekByav8ZV78xpVIlkBpN5t9fdiXVatnWeNlnKhd7GBiuojqURDR vEzd3Q3HWWzaqLQb6YKas1eWtKiVnwyM1w249UkBKden5SnxWPTrD604MrciCv5SWADe 4/pg== X-Gm-Message-State: AGRZ1gLxfNITh7vfRY25lrkJ4+VhceR4VPlV2+pA904gK+HaA80Dg+zl 5c8vAbCSbvvuCA3qAhIHPfY= X-Google-Smtp-Source: AJdET5d1xR15tmyY+MQ5TCTAuJvAKVXWIyZF2mVqR2UObGa8gkHSox7LV+IedJgLZox69yFraTrYvA== X-Received: by 2002:a1c:39c1:: with SMTP id g184-v6mr712244wma.93.1541571938242; Tue, 06 Nov 2018 22:25:38 -0800 (PST) Received: from localhost.localdomain ([2a01:4f8:10b:24a5::2]) by smtp.gmail.com with ESMTPSA id y2-v6sm21657752wrh.53.2018.11.06.22.25.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Nov 2018 22:25:37 -0800 (PST) From: Nathan Chancellor To: Ricardo Ribalda Delgado , Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Nathan Chancellor Subject: [PATCH] media: imx214: Remove unnecessary self assignment in for loop Date: Tue, 6 Nov 2018 23:24:50 -0700 Message-Id: <20181107062450.5511-1-natechancellor@gmail.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Clang warns when a variable is assigned to itself: drivers/media/i2c/imx214.c:695:13: error: explicitly assigning value of variable of type 'const struct reg_8 *' to itself [-Werror,-Wself-assign] for (table = table; table->addr != IMX214_TABLE_END ; table++) { ~~~~~ ^ ~~~~~ 1 error generated. Signed-off-by: Nathan Chancellor --- drivers/media/i2c/imx214.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/imx214.c b/drivers/media/i2c/imx214.c index 284b9b49ebde..ec3d1b855f62 100644 --- a/drivers/media/i2c/imx214.c +++ b/drivers/media/i2c/imx214.c @@ -692,7 +692,7 @@ static int imx214_write_table(struct imx214 *imx214, int i; int ret; - for (table = table; table->addr != IMX214_TABLE_END ; table++) { + for (; table->addr != IMX214_TABLE_END ; table++) { if (table->addr == IMX214_TABLE_WAIT_MS) { usleep_range(table->val * 1000, table->val * 1000 + 500);