Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5829285ybv; Wed, 12 Feb 2020 00:50:03 -0800 (PST) X-Google-Smtp-Source: APXvYqwKhu34vqbZjJBn4LiHXkxk2qWpk1Z4WTVgmT6oZHVxqN8g6Ne2OD19P+zSVzJ1ZobRjZNr X-Received: by 2002:aca:d507:: with SMTP id m7mr5308222oig.48.1581497403266; Wed, 12 Feb 2020 00:50:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581497403; cv=none; d=google.com; s=arc-20160816; b=jcU44rt0qmNsr3gy7IoDGf4KR+sIp4mmA+qTV+XvCh8yYJGV5OWPjEisQbsmEZO9rr OliXHRUV/PKhEqZ5mSJwiEje2m6yf5iVvXZvP1JF4d+jYUz3crXppqZZuJ0u2bxoyF4f 8Y/xDVNr/YaFzvXFKuOjS5t7O1Jy8mLYMKrCISLtc+qwXPxq2i/JsAK5EOIGvdsZG0Xm NWFx4t+xYRnU7ojyCrMWFY4GvdzbyalGoSaP09zBN3xaFHPW5zrGBlRQBYJoVdxpCYkS 7Q4h53jRzgibRdMuXg4DN8VPpOkcE4axF7WOmAoJyYAYPF/oW+bBIEFVSNy2wul56T/o 4u8Q== 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=ZVGKpEoeaSBmesm+XXOsM17sLV9EkVPZHa5IijVIoTc=; b=uoQBkJSzZhyo12l/yxdm/tNLQHUJkYqaJtt/uD5Q7CFCxCdOkaPstudPu8x1iMgw5S Ae6u1SfL2wUbYYITvuu6dI+qmxnNK0qXxKH8tL6RzeOKVAT4032NvJp/YXwI1w8GvwJu Kou2to0MG27RTjqyZQp1uxILPUC40MEoczW12s+8yByeQKimdTn9ICVUglcxAwgEn4tf tsYy0gcp+haDre1siAPd82V0qrBEv8sU/hDzcTwI9Zy/G+ilSdE1FXvOtTMK5VOukWCl pRg95rTbm+RPDY0ZJjzif5xM6/AslA2u4g+nHtbHAIoAs4EWbXXPKx8R3mZcwpk3gTKD 901g== 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 r82si2944597oie.116.2020.02.12.00.49.51; Wed, 12 Feb 2020 00:50:03 -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 S1728641AbgBLIso (ORCPT + 99 others); Wed, 12 Feb 2020 03:48:44 -0500 Received: from esa3.mentor.iphmx.com ([68.232.137.180]:42675 "EHLO esa3.mentor.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728538AbgBLIso (ORCPT ); Wed, 12 Feb 2020 03:48:44 -0500 IronPort-SDR: Nvw0FT5zA0bkzPThUG2AA6A6CyiVIcwX1e1euyqRCQly8KIXYXYI4vTzvFzN6zK+qNyo5pnEx9 mRkeaWYeV8FEeRZOlwZwAVVxkO+uDRhIS6qS9YWGyEVeM2/zEwwDjjXmZydLcn0EmH+lYxUHfa prGX0QtgKiS6Z9B6FVIpzws4QnedpA3rUKZlf3jO484dyaagCs5+6NEEwOz8GtqPWIGt5viz2K BV7dwBpOilLJFv7Ui2IGt24qt8OOyMP8GBnCvXZmdD/I08Fim/rVvVJyUiB1TH7evOm5+ycy/x RyM= X-IronPort-AV: E=Sophos;i="5.70,428,1574150400"; d="scan'208";a="45742651" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa3.mentor.iphmx.com with ESMTP; 12 Feb 2020 00:48:43 -0800 IronPort-SDR: 3pRdBghNyuIZJ2UHCP3UcZGr+zw1Ego2Jw9McQffzAszi6NoRvRAEEdOjTcKLVGdvvoVzp85rJ 2EWmlCv1Xwr7+wa7KuLK0SHnN++qe2TpIq2gGeduRH/8/qgmDtNzBcHfwwbrOmoZP3yLvybTzZ FrRl2I4qlmUOopKJ498nJ6/dRfCR3H8rqQVkoKjoIGtE1TzaxaC0eDtCWADUtD7mnGsGpj3R98 b/Ndp0kuDI21fuwxf6zeEz8QsrM9GZRW6wNxQsNX0qKsLaWw2smqk+RrmpvD7E3BIt1g/EQhY7 8OM= From: Jiada Wang To: , , , , , CC: , , , , Subject: [PATCH v7 48/48] Input: atmel_mxt_ts - Fix compilation warning Date: Wed, 12 Feb 2020 00:42:18 -0800 Message-ID: <20200212084218.32344-49-jiada_wang@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200212084218.32344-1-jiada_wang@mentor.com> References: <20200212084218.32344-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 715952a6200d..79b92b20cc91 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -2046,7 +2046,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