Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3367309ybb; Tue, 31 Mar 2020 03:56:02 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtFCkS/03Rd2nF4XY3rMtp9cNjy9FkOgZjruq457uqwQo5y+jQxSeKUjfX6QHLdEC1A0fxJ X-Received: by 2002:a9d:12cc:: with SMTP id g70mr11877137otg.115.1585652162564; Tue, 31 Mar 2020 03:56:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585652162; cv=none; d=google.com; s=arc-20160816; b=0vjbh3l7LDKILEOpKE8gKihUIFGlp4JYClYYRxFHV1ZvKl22BPPALrTUyfaviVArcx t3iUva8bhjqfdcqVlMUeWtgo4IrNsKuPmBJ7WZylkyUp1zcuyGZfR/SqJ0h1wwYyXmQH MExKEu2TAAmP0+ns/U0LjFrlMu7CHn5qZUck8ZdYUUjpKfJP8NG0RNZYSGLd63Zzuj4C h93GGWnjUKj60gafjgpPVJaOWJnCit+Cd9nz5hsBgOlmjJ6DUWyVa3ocG7so2ZF8MsId PQXj6nXMuN863pd++pih6sZCBHQWZBrjrsEU8ZNbhj6ms/PyIA4JiAVS8RX2LsZ5uzAD XQKw== 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=Xeb4mrYzYqT+AQQ0HkKp9Z3lh7zFAEToezsvMmw7Zu0=; b=XmZIfCeVUU/UuKTfFH6fLwXlwjdVg9/FCrotTGrOr5dQgca/cvS85UL1z/BO5zDMlB xJDBbRsmh9cACXsv+eP2bygrNHor9+M6OHhmB3+XDRePiTJD1cIOuZAue1CrBh+y9pih TwnFjpcbSlOa08kN2VXjV2zSGlQdT6WCTUiB+GDXgsrSjuZv/RFqI4q67Ckui7gjree6 +ejmnGVvv9T8rsEJjNY0rO8yhlJLNUiGU2dRUQwHquSlaRrlKt3DgxO30Us7FfTA4NgR CiUF1IcOL05SHkEYe4Q+iHweCPFMO4v+aX7WhNb4GljGT4czniim0yxwr3bApq6pYZht gvSA== 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 g2si7515783otr.13.2020.03.31.03.55.50; Tue, 31 Mar 2020 03:56:02 -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 S1731026AbgCaKy0 (ORCPT + 99 others); Tue, 31 Mar 2020 06:54:26 -0400 Received: from esa3.mentor.iphmx.com ([68.232.137.180]:28112 "EHLO esa3.mentor.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731063AbgCaKyY (ORCPT ); Tue, 31 Mar 2020 06:54:24 -0400 IronPort-SDR: 3tyijdcCR69WBS1sFv8W8UnChHo4wjViFODb5czt4K4clU4kUboF7DVkb6yB+LjPk2IG7l2c1F rZHVqz4nXL2ZsZhujr9QBc/PAtSnSwBmFrIRePtoQ38sTCa2R61fZcsqGfCnfq8UDCsl17vbJv wlzBZejEkq+BcTkfdL+SGzR9b4DAP/GzSDWA4BhZ64MNbXh4TdFGRJQoi8oMPd4OBf1FzVgvnA MwKeHvcLXLzskSakUZnX2txKVTMnkTygjceOzHAOzp5qhy185sk7pYTqGQyGJ8wdUsijC6ueq0 f1I= X-IronPort-AV: E=Sophos;i="5.72,327,1580803200"; d="scan'208";a="47293543" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa3.mentor.iphmx.com with ESMTP; 31 Mar 2020 02:54:24 -0800 IronPort-SDR: lvuXWb17PRMuN201wB7IVkmS/3GlGX8aYkGySmjGd9cJfnwdMuz89/DtSi2DiJcUUw/Y6GhYTu w7CJrBj/wA93M45V+UDKFYdtz4Piogxpynch878wc+iQXzGzLh56CnZmPeQREtYFsRuZo1Cy/Y MbOhGMy+nX0dGHwngz4nyURHpLUq79ObiNC1EcuhSRYGP2Dw1C1t0UvE6gNx8UwaWgv8qb4AK8 QjQPs0TnyxuTk1nBoqsS0x0F44dprBky5qLiQcNshl1pPWb3wxz93sTawLVaBvcpDlItt3/R5S 1OA= From: Jiada Wang To: , , , , CC: , , , , Subject: [PATCH v10 55/55] Input: atmel_mxt_ts - Fix compilation warning Date: Tue, 31 Mar 2020 03:50:51 -0700 Message-ID: <20200331105051.58896-56-jiada_wang@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200331105051.58896-1-jiada_wang@mentor.com> References: <20200331105051.58896-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 d244d97d134e..b2edf51e1595 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -2032,7 +2032,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