Received: by 10.223.176.46 with SMTP id f43csp2179697wra; Sun, 21 Jan 2018 13:16:54 -0800 (PST) X-Google-Smtp-Source: AH8x2268RXzMVKEL/PIJoMKKqZmysghTWa7dzGmM5S+H/OtT7kdv02Ncw4jGsKxoC1hFRNfZhXC3 X-Received: by 2002:a17:902:4222:: with SMTP id g31-v6mr2365715pld.203.1516569414275; Sun, 21 Jan 2018 13:16:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516569414; cv=none; d=google.com; s=arc-20160816; b=c8G7EbPCubEh1U0ucrw93xB/yQ2FAqwYVgPmsqga8jVsGGRksD+t/XFYJ5iTAPHf7s HZ83ybwuciAkQ43w5P0w4MnUK6qIrEV2eWRii3cVerIfyN/zH0KDs8VDmueN+i53jICn K6A0oeK+wrApgsk/tw2K6dwKS/vWZT3ql3F+B0HbXnUx/FZErlN79sJL/jhAixT4V4Ms Zx187XwIFbPbmmVOzny8gEXpDl3L03tf1q0gdb/7cXe7YEAhBsikVGyb4s79D8dvimJz Ln/zpIWBmFlOVEfZal9iybAdup1rm4MScvHSll1ygiG//KKUv23o+AoojF5bbc+G4NPd 2N0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:arc-authentication-results; bh=HJC3Cb7gBOGgOzG8fq7EUhemSC0m6yUnJM+uxXGSS88=; b=MKcKyC2LWKSgqthGLyFlLl5bEASJQTQK3TNVdZs4w8t6XT8v9V/xoln7+G+E93wsYy cyVj2Uvfz+VaGe1FXfCcU7oy3yAaFecUAzGZ0UkKbnzG0yge0BM8uADMCR/avHLUk1cJ bILNdLU8OknMqcEM7vLz4z5a0FTyfi9sMwJloXkxnsoeznAObjcIsSfJ7MFOlCcyJxlM /lg1nNfU6ynQst9ZIDvYz6qUr+dTKmUuiVLwDfhBmPSGuCoKMXzUusQ1RpQyybFzT0Iz OGHUAKNYrMz9SHpZFoEz4qGnHk6ZV1F1fTvyzu2AsulEp2QimANhznFfYw7Zk4M1vyN0 ijZg== 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; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i1si2391755pgf.539.2018.01.21.13.16.40; Sun, 21 Jan 2018 13:16:54 -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; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751311AbeAUVP1 (ORCPT + 99 others); Sun, 21 Jan 2018 16:15:27 -0500 Received: from mout.web.de ([217.72.192.78]:55823 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751047AbeAUVPZ (ORCPT ); Sun, 21 Jan 2018 16:15:25 -0500 Received: from [192.168.1.3] ([77.181.34.161]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0Maamb-1eNm161tA9-00K9e7; Sun, 21 Jan 2018 22:15:17 +0100 Subject: [PATCH 1/2] Input: auo-pixcir-ts: Delete an error message for a failed memory allocation in auo_pixcir_parse_dt() From: SF Markus Elfring To: linux-input@vger.kernel.org, Dmitry Torokhov , =?UTF-8?Q?Heiko_St=c3=bcbner?= Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: <4f101927-97fe-1d8d-2bd7-4d9c3e2de8c5@users.sourceforge.net> Date: Sun, 21 Jan 2018 22:15:16 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:xDPZlnnyAEfXe2LwJrgffu8WCZDFAljh81zl1MsJRrmKfE0eFJr 9vji2LqA8NfSRjCbRqF/Lyn+g8CPe7nHm47tPCpbCBaEcJCAi9x0Ys931hI/HXMd04X7l7m XfmjZsFsqLYan7/AiM82F/skgrFazuYRRVpVGFqEHRhVrPyZ14gJ3/i0xHMycu0+2H4HjHU 040QaHa/cs/5+gRI97p6A== X-UI-Out-Filterresults: notjunk:1;V01:K0:4Hcu6JdcV1Y=:bQCNgnGy0LuxkS8jepuEVw nZdBqV9bcfvTqYr72Ax3ZknnW+HYTYqrjvHHSdCEYXgILAAfrV9sxEa8Cmud4D9mIlRK412nC o1aMEtTvNsF/eFWEyvQB4Tq98kHP7E7vj+4sL2DQqiAq3zYTKFMrSHTqKBD1j4TP3lnjVAwmU Xhs52/zvC0aQZxGXO4BwU1U6kR3ciw9CEBOCcLuoDdcXwUnaobfT2oXgckffi9i97yFiYudlz Ql2H0jKimBMzFJHnN3W4x4p5XA1fty9ZNn1zwCUVemqRKQGbCpUla756EBfIRAhMs9BjLUcjl f3rV9nHfmZm3bPGk/gzo5tWUK+5B7nUUDqLKLapwabNneDr9azLXpYdLKoUKkD7yW34A9iCfY 5xUgQWA/gGgb/EaJZC/XyLnBBqdivqu++H+HnRpF5iQLmDzOEqjzVedSYqKYWxLH+ut3/PtZY K/DP/5wQTaqW2NMOLFIU8B/wdIak4dPWmH+CwmOxxWcJKM+T/8smk/cNkx80FBbV7ZKAaWtgC 3nINEnXIer+QyGekyLnc4/cVPeYzCOVERtzIZUpYrY0CP5RCXy86qjrbY2i37bqXjrzc+18Cx NOjDAd8HDeDidkBucLTMXjyHLb7XO+S1CYUN9+l+6CEcDzBscY/SMGA51g2pQO+Mj8D4FvAFk 0AgP9V1vZ95570r87tYL095v60eZbcdL4VxiTRdjNcp/8qot3+xqi842GCzqk/gPTMIH+Ykdq GJgU8TmaZBZkZRSRjvRukREv/SPK0ynR92EKEVt5e5vQODhCnpqEIqvHZO9/fmOuF6dOi+SBl /PiNJrcGatLcnxIgzXdxCeHMja6LD8Umsn4EMsqw1i7ZRzQ3z8= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring Date: Sun, 21 Jan 2018 22:02:32 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/input/touchscreen/auo-pixcir-ts.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/auo-pixcir-ts.c b/drivers/input/touchscreen/auo-pixcir-ts.c index 6592fc5d48b4..398e27c48a51 100644 --- a/drivers/input/touchscreen/auo-pixcir-ts.c +++ b/drivers/input/touchscreen/auo-pixcir-ts.c @@ -487,10 +487,8 @@ static struct auo_pixcir_ts_platdata *auo_pixcir_parse_dt(struct device *dev) return ERR_PTR(-ENOENT); pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); - if (!pdata) { - dev_err(dev, "failed to allocate platform data\n"); + if (!pdata) return ERR_PTR(-ENOMEM); - } pdata->gpio_int = of_get_gpio(np, 0); if (!gpio_is_valid(pdata->gpio_int)) { -- 2.16.0