Received: by 10.223.176.46 with SMTP id f43csp2295384wra; Thu, 25 Jan 2018 07:47:55 -0800 (PST) X-Google-Smtp-Source: AH8x224TlzIOcU5SsGDEjhvgVlWsDZ49STeXb5E+cknK/t332UdT8eW3dhbbgfMBbfPLW8OVmBpg X-Received: by 10.98.216.2 with SMTP id e2mr16326224pfg.151.1516895275442; Thu, 25 Jan 2018 07:47:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516895275; cv=none; d=google.com; s=arc-20160816; b=MOgKrYTfX8va6jnFlpYx0wHYFUR1UcyUSPjBjTRcv756YKYEfO0MOJM9rCt1Vdwepn enXbY8aHnzibI3H+tKS2mWt8LOSVLF41EiWM0l0LLq8T8StbvHyYdbBeeD8ENLmD52sO b+AcXvdN5gX/zGI7FEkRDcg1J5P9cm1RXC2eRr5ivtcERQVzCJ5Psm9fppvuidmOWRJT 9hHY8Ai3tE+rVr/YFjTureWt7D1wKZXCLGzV7fVsc2kH7e10KaObvSZXwKPIWicwXjwd 4ycBUmEAfGmwlEt4St3wgBSPGBp64A75572Mpf+N4eMSMSklz86kKobjKwF5SjXZTgJy h3Tw== 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=FeXfq/8HgPvISLLlaeW0gO7Mk93wAahKET4KofTPXec=; b=sKT+uZmx+c19yysR0gNFKE3P49sjuyOxeXL1XDPwO/GyMmb5L7vQ2XrP7wWfqlZlbD bWKtgfwnM1Zrfru4gTSe6Pmsi4qpne5Lo9E0LdOpRRsFX5bCnPlH5vWKne55Adt17cTe gXcAkftvoSSV9X04kG/EVAyf/VmV6aXPfQxfY5BEYPRgQcKVy7H1+POthU9HZ38iGK62 UAcjKp4Ej9+DZk6YzvTovuMTLcr1/LpPAbEZaSq/jT7NMVr51VsAeZCc8O0da231RnLV zFMRHi0T3/fEssLZBhT/Efk781AkZM0w92g3oxq2xiLI9XxsQdzwFcP1Lr7sOYZlgWhL fx7w== 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 q2si1697941pgf.90.2018.01.25.07.47.40; Thu, 25 Jan 2018 07:47:55 -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 S1751257AbeAYPrS (ORCPT + 99 others); Thu, 25 Jan 2018 10:47:18 -0500 Received: from mout.web.de ([212.227.15.4]:62731 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750980AbeAYPrQ (ORCPT ); Thu, 25 Jan 2018 10:47:16 -0500 Received: from [192.168.1.2] ([92.227.186.52]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0LhvYQ-1f9tPk2NUY-00n5UX; Thu, 25 Jan 2018 16:46:58 +0100 Subject: [PATCH 1/2] Input: sirfsoc-onkey: Delete an error message for a failed memory allocation in sirfsoc_pwrc_probe() From: SF Markus Elfring To: linux-input@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Barry Song , Dmitry Torokhov Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: <00544fed-52b0-0536-ad4e-f023668f08dd@users.sourceforge.net> Date: Thu, 25 Jan 2018 16:46:56 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:pXgNnQVwqIDzFKmHpBgnuYXmgqgv3XERwdhKLc25Iy8mlnrylx+ mW2cDI9CXfGkEZCtKh5dy6VulGd098m2phHaY8EZODgnZOggQJNylGp/1qR/Fm0f8dfXKfc s1+VR27zdrjHu1sktkN6EveKv+5l7rTwqofWHjniFFNCZOzK3eFtu27RUpk+eHfzWbFSp7u 5dmEL8Tu0vZsnzwo6VXsg== X-UI-Out-Filterresults: notjunk:1;V01:K0:dB9o0VU/ckw=:GxbH3AfLBssQCbfN9XWzk4 IZqTxJAFwDdYnNnESInGhTOUiiEZNTXPtOsnWL0yaVoY1ouFLnp2BSGFiH9MQbG3vWMD9BZba JCTfONIwliR1WFf808YlrGQ3ce9agB4GTCCta9WqDVo2zG7HcplzG/ferbRMDgzVRdH3zzbFB R/b/fOjHAC/gwW3aoHseFK9TR6EDbIZb9FcWhjlIJc3WBS62NwWUMy9p68RUBLQtO8nbKUwHr wWVygtSluGspQXsrKYOfvcN1ECvpSUJMARAxYAP1++OQ6hu1KOYrnx+LAcNwhvONHRqtqZrnj ATnbcheMmIBC/so4SbF47LVJWYe46XtwJjB1/D2QGVy21g8tjRzMpPxkpihrLPxdP7VK62L5G qLuMDJmCIRbAXSy4ihc2qt5kCL1mFw+OIJYLlh1xuHshXi+LGa4Oeh3MOT+8yQKdsNMMeYVZ8 7cOtEp5fYwyjTC9637oGTDou5YqTV36R7twU77wDIlaKF70R8kPeeLMNszwkM0qUOl/Ch4tz4 T2q7LCDeftBETIE4Niil/Q8ZAYerQdpvSbo8c4oY5NNKUbUCX9/KH+X0/Gkkxq1ij235PRTwf suFEZd5hk25D5/aDRI53ZbpYq4cIBZhridkt04WxPRuHM4yC9fvveHKRbfjla2bQ2xlVllXYp 8bwvi4hJ/6Ma1sM7aIYaHsReee45ZziM2gN7C8GBPVRToEwliZH1issXESff9sr9rK7uuv0kr vrol93nHVpq3fNVPnEVTqwoDtPC5hkbNg8ARI5lUlchsS6IwW3wVKsiq0B+Wv7QhQCqrnvNy2 XSH6wiRYAWA6zh0+36s0r0fIVqq9e1IZUIyR2QlxW9bric5FY0= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring Date: Thu, 25 Jan 2018 16:32:09 +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/misc/sirfsoc-onkey.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/input/misc/sirfsoc-onkey.c b/drivers/input/misc/sirfsoc-onkey.c index 4fd038d476a3..9d8b4e2d7063 100644 --- a/drivers/input/misc/sirfsoc-onkey.c +++ b/drivers/input/misc/sirfsoc-onkey.c @@ -113,10 +113,8 @@ static int sirfsoc_pwrc_probe(struct platform_device *pdev) pwrcdrv = devm_kzalloc(&pdev->dev, sizeof(struct sirfsoc_pwrc_drvdata), GFP_KERNEL); - if (!pwrcdrv) { - dev_info(&pdev->dev, "Not enough memory for the device data\n"); + if (!pwrcdrv) return -ENOMEM; - } /* * We can't use of_iomap because pwrc is not mapped in memory, -- 2.16.1