Received: by 10.223.176.46 with SMTP id f43csp2050560wra; Sun, 21 Jan 2018 10:04:27 -0800 (PST) X-Google-Smtp-Source: AH8x224QC85l5QfGG/KefSg/pC4qwpGBPOQ16vnbMRxKh7dbexTV71tyoryNOipHwMjvzj6O0i2K X-Received: by 2002:a17:902:7849:: with SMTP id e9-v6mr2238135pln.287.1516557867277; Sun, 21 Jan 2018 10:04:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516557867; cv=none; d=google.com; s=arc-20160816; b=Q4MNE1KtyeXhxal7tC5PHgGn9HbtYeol+Ic6AX/+Y+LWoa5RhowXEXjI+GQ4jWX1yr NLqv5Hc6yOyFzlEZpiCqnbhdEv1LMjHtwa/6572YNi9Svxhx1aGDZ9Z7AV8G5RD80paU 9JDOGMXyLhd2+QY6be/oim3Nle1k8Q2GZMTV0troRpdA2N1Qgh0+zoAUarxyJsdDaIt+ N26fI63xgvthQVfktcHsbf7OaLQMKz5rUPQ7bhgOT8O50a7HJEGI6dBngpkTHavEr5yz GfahdmABRvUAat7Yh4oCGGBWot48M8iIkodsaO4OAzLe3z362cB3gMmim5G/i2bLm67U C6fw== 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:mime-version:user-agent:date:message-id:subject :from:cc:to:arc-authentication-results; bh=2vBvliMCIE/sFDXzp7qDmjBS7xTNQf6ctrOZESFRENQ=; b=s46dOZhR21VZE6dTXmSGoRMne9JinKu7BFuZOw6M44G0RfGY1kXzk+p3Dw4dO1MLx3 mdGDDt8DUF6lTRcl41nbVDAunzNeg7MU0QnoQujsbgjCqy/Gi3iknVhCvrUI3hvFCNNV dcHoh4bflQxfyh0a/UXZqZ7MOEzw707vuItuYHJo2oMpTzZyFSX/85Wiq4a95lxX4Dzr PcvsP0mvYQ0YaHuIP/Vt6oSxI/m5xpUMbbgQCTdvvviMlssraHvLmdm52WCOBnr7uFWC Lm09Cr2Fc80vB+MAssopZSzuQU7bw1jkreYZ2HDZQBJMeEnrbJATAubHNksVBWS9lX8e ccUQ== 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 h1-v6si2684170pls.571.2018.01.21.10.04.12; Sun, 21 Jan 2018 10:04:27 -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 S1751349AbeAUSDt (ORCPT + 99 others); Sun, 21 Jan 2018 13:03:49 -0500 Received: from mout.web.de ([217.72.192.78]:61983 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750925AbeAUSDr (ORCPT ); Sun, 21 Jan 2018 13:03:47 -0500 Received: from [192.168.1.3] ([77.181.224.251]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MQvkQ-1eEXb400Ug-00UMSr; Sun, 21 Jan 2018 19:03:45 +0100 To: linux-input@vger.kernel.org, Dmitry Torokhov , Wolfram Sang Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] Input: mms114: Delete an error message for a failed memory allocation in mms114_parse_dt() Message-ID: <9e7748dc-76ba-f147-6ee0-d06c160c7aa6@users.sourceforge.net> Date: Sun, 21 Jan 2018 19:03:40 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:96TO62Bet6PeM98Ce9HIUuNuJMMUBQGRCFjSfwVHmikPby3er1l yiEqQ/REfuDuHMC9I1eXAL7RdgcyF7tZbjCigwkXX4UFLtUyxDywZZcZMxndZfwW3yHCLBW 7X+8n41GcCfWlKTCXO95sqtylgYDpGfA079clUVYjhrrZMkSlN4wCuvsysIYl2YgDOKogti pLICEjAoa6cWJkiMg/VAQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:GKqUBAnvx/k=:ZpZJ4b54lF1wKhBY/gbZJu j0UlCg6mbbHSWyIfz9LOWT4FHFtvnLHJQGGrrwYIY25Rjny3TbAq2FF4jitbUN9R586GzrPLd Y0YZPR6ofP5WoEPrd0zjQxtxDlsVKoVWn6Awz8AGsU1AmAFda1cZA+Jnykz3VgrM1MloV3ZUt GkqL7TrAI+x4in4+o7mzDUd9vqWuKXfklfFQGd+XyH7LrCXchaURcAHJwhUMnCXUECLxNWk0p R2xJJIlGAsDJYm1SZxrOe+CsumrBINwiBONKtgWlFzbC7JioqPAjtD1jIR5zJQPbMb1nPa63W 3D19iCEL8eqiPRh8PfoIQzTbn9GAPR3XsMl4i1NANIinUxTx8MdSH0kgmif4AkOuM8m5n16iQ PbvjtlRKLiFE04/9UWT2ffPTA4YgR3U4uX4o6dmu8TdgYdibs27DfJws5QgPQIn7FU/BnTuAT hXXKRDKtHOXIiJlF0HlRT6kjpL+EdihTihZlDYSK2GcCwjTTqK0jQJIJXBGRGDe7Ozj4RWCxX G9muFSy2ZfVP7iJSDiO9drHyHbRkYCWv6Psf1McnoMB8bFfAs2/SRgI/gmqitYSkLueoo30Hx wXrSV3FttYoQq80oH9sW8tfQCHbudZmCbTpJsKh8rTkfqa9pH8oLkf6k8nOvTvgGD3+NyTnze 0bkw6qvFFfCqIdAdQzAVuHqy+k8++wEECK5YR4ilnV7v7IDCXGKqRCivUarUhl3R9auwwcjmf yh0Wm/6xS+CilHu/Dgo51W+z/6t3zc4tkfgzOfdfoci22Poa+Dej1yIx2Cqwgk66xj2AfSyCY tF4o8G4jTvH9Pgq0wJ+Noith/fUwopCO4x1OSEc8FRGuVQ3jRA= 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 18:58:11 +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/mms114.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/mms114.c b/drivers/input/touchscreen/mms114.c index e5eeb6311f7d..b4482a024084 100644 --- a/drivers/input/touchscreen/mms114.c +++ b/drivers/input/touchscreen/mms114.c @@ -386,10 +386,8 @@ static struct mms114_platform_data *mms114_parse_dt(struct device *dev) return NULL; pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); - if (!pdata) { - dev_err(dev, "failed to allocate platform data\n"); + if (!pdata) return NULL; - } if (of_property_read_u32(np, "x-size", &pdata->x_size)) { dev_err(dev, "failed to get x-size property\n"); -- 2.16.0