Received: by 2002:a25:d783:0:0:0:0:0 with SMTP id o125csp752782ybg; Thu, 19 Mar 2020 08:09:46 -0700 (PDT) X-Google-Smtp-Source: ADFU+vue+pAQruzUp7A2naYhIUofRxhwGs1lVUSxzLqRtsVHFHxrzxuCgi+W+fhmj3EJDIWxq55/ X-Received: by 2002:a9d:4c98:: with SMTP id m24mr2848846otf.158.1584630585987; Thu, 19 Mar 2020 08:09:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584630585; cv=none; d=google.com; s=arc-20160816; b=Jjk5lU2NEvEexzklti0V4Z4iR4fvjnydLsiCWhCKqTg48iYy5aKu8Ji4C8di8tP72Q 0hszyCPUpoMwePcxwE7EUQ4tZB58WYgmhmFibABdmKJ/gDdA4LEQ6YUIo5VyDRU3HUAy FKLsu+iQaTzoU/6BxZY2Ay9qXjN2PVL7bsEUhenVXd6EQEwtkc+rGC9jyw9xzsVMyzO7 ZdwO81kuAXRLZCtsDOgogbFRvP/rDzDQWa20F9KyPml60zkadla9kJJb4tYhyUZD3MXN jCCkmlGAoqspc8RW/5QAOhk2wNDyJg2FOOnTplqMqB9B3CdMi/SyJZkJpDBYHoGrAzNV /Uug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=z3L9PQbgYlxSKzGVe5yqGcodYzmzr2o3KmgstfUgCOQ=; b=XHE0t9xN2Kn5TFFGvMat8vJH+oDBrRlWmfKK2bNqbDpLFGgKXtp3op/EuMY+rAKwPQ 7gtWZxVh4jRMPBi0K49LkcrJzOoCVmaNvUw1HXwq1vZI3fyULTIndKIi/zqBRcyLhZPi rPZVIj6Igx1NVDhMfyzaymnWgy4OimWnNoqaP7n81LOYl9YVNJirxvvRMuvZb7PyuggZ /LmNVOZ58jaPtVv2pEH8aQZPx+9K3XcHW3qMFniC2tG4ugrW4/Mvi9bvZcgPStCzHIpw YG5k3I+kF00przNc0hflLmzWzaL6uQieR+1ysaae9qQ15bfiSXCfyEQ2lZ6ID0sKLw5m FiVQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k1si1347470otr.52.2020.03.19.08.09.10; Thu, 19 Mar 2020 08:09:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727966AbgCSPGw (ORCPT + 99 others); Thu, 19 Mar 2020 11:06:52 -0400 Received: from esa4.mentor.iphmx.com ([68.232.137.252]:5833 "EHLO esa4.mentor.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727183AbgCSPGw (ORCPT ); Thu, 19 Mar 2020 11:06:52 -0400 IronPort-SDR: frHQI7gmou2DTYNl0SN9ICJNA/fa6VE4RSZ7FCwFgWGaCHe9WcYhpuK4dNO97ni09SeDupanRc Jq9vo/ZIg///D2XAuBwdQDLibR4lZqhhjyOvWlPhqL9sWPtwuW5p7flch3KP8svku67PoR0UU8 2IGMwwbjru0JBV4Z7D0r2J6SgCKBGiHWjNorZHNWl2UnkS107jiL1k40v4jezDrS+BcE+qMVtd b0rmAXFWIPIaBqLaUANdSgw+NFQbm+6TdqiEmRx4AZFWh3N2HakCYxXMkwxEUYHciA4VXp8CKn o6s= X-IronPort-AV: E=Sophos;i="5.70,572,1574150400"; d="scan'208";a="46927151" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 19 Mar 2020 07:03:46 -0800 IronPort-SDR: a8I4DIKisE09+xItcWC9u5+rEINlZH9hGL9eUge0z0yPQei6GkZeDE1rwGTjZYLMKqHARP7bvr S/2p1m+rHzmxKWOhRmV6RemAepiJzMMNdiUJgNiWOmMOlWTueJXRnGd2vfAuhc2lTSa4qsAB/p Q+6weqw0FZ9OAL0H9SqXK4K+4fCfp97K+fABWFK8zkZ6So82MvO8sfwCFENcV84nqpHPqQqFT3 iAvVQHqj7AguFrTC1IekVM8Y1241lvEtHyG+gbrzugjZeyd+B5ckjI8+j4FT4UWKdkzGfEsgTX UJU= From: Jiada Wang To: , , , , , CC: , , , , Subject: [PATCH v8 52/52] Input: atmel_mxt_ts - Fix compilation warning Date: Thu, 19 Mar 2020 08:00:16 -0700 Message-ID: <20200319150016.61398-53-jiada_wang@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200319150016.61398-1-jiada_wang@mentor.com> References: <20200319150016.61398-1-jiada_wang@mentor.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fix "make W=1" compilation warnings from Atmel driver as per the compilation logs. Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index a8e80e77624d..b1e27a07de6a 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -2048,7 +2048,7 @@ static int mxt_prepare_cfg_mem(struct mxt_data *data, struct mxt_cfg *cfg) byte_offset = reg + i - cfg->start_ofs; - if (byte_offset >= 0 && byte_offset < cfg->mem_size) { + if (byte_offset < cfg->mem_size) { *(cfg->mem + byte_offset) = val; } else { dev_err(dev, "Bad object: reg:%d, T%d, ofs=%d\n", -- 2.17.1