Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4316104ybc; Fri, 22 Nov 2019 00:29:39 -0800 (PST) X-Google-Smtp-Source: APXvYqxuI6FBIMfs9sgIhaCyhsAjj8VFhlT6/V6eNu71EG50PVwemoaUhUfqJuwe6nSe8HR4Jv6c X-Received: by 2002:a17:906:b310:: with SMTP id n16mr20464577ejz.129.1574411378989; Fri, 22 Nov 2019 00:29:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574411378; cv=none; d=google.com; s=arc-20160816; b=E2G1V7UheQrWKCW/tyxzPJGLxM1KUaN8Hxkogt/EA6YWFgVG7ssGEUjCP/Lqa8b10h ju+MfaPmwRrgieodV0bot8g3roHb0fzhm6bEpkLYVyWRsZLGT+Hv/hka6Ckd8QFHETuZ AVaVQ9cGjDr22MLTy9k4Hh75qW2j3O8SFVy0jo5U88tRgKQDSWyuNplEZzILV5YUs84P 15kJIrOSBdhUss3meADOwfyeC00o7lMeNcNmmMFGo646BPS6d746esRCB1fd43t+xDD9 NPWefu5eleF1YFB4mfUaij/sNtpfxlxTjTut0YTayIXwtUz4IOkYrrI5ec4aE0XhyVdr zVkQ== 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=N3tZD2k0eSBNIod+sK575QKv/BPbdCh3LukhngnF8Xg=; b=dQjP0/7Z+E5PfG1MaeGR0fx6UK5DFcq+ZgfT4CsRQBeJehuAN1gmhCn2HcICQlri8Y ZvMcF1McIS32yb/xjI4n9raJYz9PmUVsqD6iBzKhNHM49ABt3U/GrwvOAUrQ+hB9JFB6 UOfB4ws/9VKqvls/Ilb0OmEBoTEJUkMY1xHyY7ufneAXkQFW7FTL8eTQGTLlyXc/oO75 Awpg7Hp3AHldee0lWdRXWm9dVnCSP1Z39efTY27NnKVKjGTzFSZC2nSfITpTsTwnSR1n SX6TX/p7s67Pj0/nHlCWD9slCUJzb7FHrI9SOh6xNe87y+JHcdlbU1XvgC9CK7s0ejom MSTw== 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 o17si467002edv.258.2019.11.22.00.29.14; Fri, 22 Nov 2019 00:29:38 -0800 (PST) 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 S1727793AbfKVI1G (ORCPT + 99 others); Fri, 22 Nov 2019 03:27:06 -0500 Received: from esa3.mentor.iphmx.com ([68.232.137.180]:4507 "EHLO esa3.mentor.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727116AbfKVI1D (ORCPT ); Fri, 22 Nov 2019 03:27:03 -0500 IronPort-SDR: WmE4YpRTIdKexfKlXc+xiQIxrcGVPaBsL0TL0yy1gxZmTsipzFQk/F3Zs/MbIeU7D14kXCFwwf UfNrLB7mzmxNIIp9rw5U4j2+cD8WCTWX4CE2vJBmRIzgujpp81XtqWqs2j638wTROzIsIAwUzO LX+Ic8XZhXQ/OPA2HvAPdwQ7f7entQ7/RMETJAK04wiLYRxlaXiy2TR2unQNeTxPduviOYu0rd 43O1em9ICCtS61Q3xw+Em2cIQnrx8nKmcGrqQn6MACm8PHWNfm0F1YRHQ1BFBam+XNlCiHT+zI FA4= X-IronPort-AV: E=Sophos;i="5.69,229,1571731200"; d="scan'208";a="43419521" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa3.mentor.iphmx.com with ESMTP; 22 Nov 2019 00:27:03 -0800 IronPort-SDR: 9l9ljm6lWSenEIbXSZW35AakmKv0BEFPwkciDkX2Oi0LFlamqYbVh8mT0/SuhefPHepGspJZED PyLAMqWK015XGGKSTkHMDmIOLffEyUMCeaLwVjhsy9cj7M8mZJdgtoncBGG3e7kS5NATtNUGA0 pCOvGzLCyAhAbZNvAYsD1fpKVeuM2w1FD8b+pdZVSV5vxblQ6lfPU89mCu0ai8WK+R1dLvRVkl SrMHqS0PZ0F6M2ciVtoU7xNnLdd9CEonU7clAuP3HH6v9gaYOz9BytaXGEnoHDOJvogTEJUDEM whs= From: Jiada Wang To: , , , , CC: , , , , Subject: [PATCH v6 48/48] Input: atmel_mxt_ts - Fix compilation warning Date: Fri, 22 Nov 2019 17:24:02 +0900 Message-ID: <20191122082402.18173-49-jiada_wang@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191122082402.18173-1-jiada_wang@mentor.com> References: <20191122082402.18173-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 243820b102b8..3e2697810cf0 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -2049,7 +2049,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