Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1369709ybj; Thu, 7 May 2020 23:03:32 -0700 (PDT) X-Google-Smtp-Source: APiQypLIlV1Cwg0+nJGJwFGz7VsFrnk+BMCzr7jcYdg3hdLsCbvT0b78ITc1mzqOjiL+mUeXGpo+ X-Received: by 2002:a50:ba83:: with SMTP id x3mr763611ede.193.1588917812555; Thu, 07 May 2020 23:03:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588917812; cv=none; d=google.com; s=arc-20160816; b=JECj91zGj6onk9tbWIB0490Upza7aHDWi7q2Nu593stbFGR2fC49RHFdXmeD87w8R2 hReu5yqwmtDdMxou5xJt9s77wY4mbgGFQkjBUT5fbN6m5H6F+3AtLU3GmW8VZijz3Vbp xwwilGJ4ryourNgmC3A3JgiOh6BvNi+rpfTmWnlv9E62hpGW5eYTh+OTWCDAsIXu5dGV 2jEC2E/TPtY4jrCbuUKTQr2jP7v97BGD/bCieAMksTWhEgJOyqQIlBNp28OFfzl5OD8q vjoC7pwFwu99lSSbPFFEZc7O1ZikztD6WMnuJPXHDyF4ryEIgEDyVNhRzGzYSwfkcwOY eipg== 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=ykB9AgTLeaLf1k/qK5fhwKdJYJeDl6Wkdpa51TEt+fM=; b=Z0Ln6u40bFSpIp+zQrhNkqUJdZGNs6zsRgP1HHr8XEqbh/D5fXB3ulCC4q0aucHg3h E0dFR1pl2210ka2Ouyr9YOThUfD1VH+vFhyo1s1rplZNWlUXO86sLRpSHPfJ6Ri8FstC /ymDBiLaEKD41IKhbJ+AzeDXtHuN4eXYvhKczXsYm2RbP9GczsepN5jED0lAft32UKpH emSnE+IKf+M5BWwOQi5kW0hjYV15pemQemnyEiPLIdzdyHb72xWdFAmkNxtDx1z9xIqs lndYZO4oRucxoAG9L6sD4/vl02AyV/FN5jP8X35FKUwqeyi0g0VcMKPOuFOEARN2A9h0 JW6g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn15si509935ejc.66.2020.05.07.23.03.09; Thu, 07 May 2020 23:03:32 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727849AbgEHGAg (ORCPT + 99 others); Fri, 8 May 2020 02:00:36 -0400 Received: from esa1.mentor.iphmx.com ([68.232.129.153]:38783 "EHLO esa1.mentor.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728380AbgEHGAe (ORCPT ); Fri, 8 May 2020 02:00:34 -0400 IronPort-SDR: wx5lcPgAIvKthU+o1pnkDxnkR3ZWqDIuviQJOkGLHpSnvbAX59sn8+I686wpJZF6aVdFIPbu5D WhzV2pwj99lqHacrAjWSxnwHnBWCXPbHYpcrTg9eMJhWsNT74+Brm4PSrBMbt+9WOXF2WNZFlJ Gk+tgJhSr+0i+IiJXX5jfETO3sQiY4IljDSiBHEJP0QpGbdjma7gkSv1ZDgiZ4azV/GqfWGKD2 B2SqVZTHKpe4L4pHj3eeFP1YFlHUPTtUC8FeFe+TVF9H5KKMOYaMry8uDw8SMM0bFO1ml2LxuO gQg= X-IronPort-AV: E=Sophos;i="5.73,366,1583222400"; d="scan'208";a="50670194" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa1.mentor.iphmx.com with ESMTP; 07 May 2020 22:00:31 -0800 IronPort-SDR: QAo7m3QQYupEXooelzHaYh1lYz5veRgq+ucjfc7EFQfJ/esQyhQ/pUx+4UdQieaL+3Oifd98Al PdEG8uW3XnojBoIdZMni4Onw6pN496QWwYtsu/k4AN3D41+mOEH5Kck1zYvrXISiHE/R8ErdTg WMa+q9hndqZ5YkQTkzxkXliQgrVzchjjOkNyyl/DjquRmqMaZ5hfNdIBX1vmWCPdbA4+PQ4qWQ QPFnwvDCyPhWIujD2zGgDC8VL+zK3wBsxFH4cADie2iRbbpBqfLzrAayKRqrT8diiaDsq37Pwk L2s= From: Jiada Wang To: , , , , CC: , , , , Subject: [PATCH v11 56/56] Input: atmel_mxt_ts - Fix compilation warning Date: Thu, 7 May 2020 22:56:56 -0700 Message-ID: <20200508055656.96389-57-jiada_wang@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200508055656.96389-1-jiada_wang@mentor.com> References: <20200508055656.96389-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 b518c316757d..8d3941e5d2ce 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -1990,7 +1990,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