Received: by 10.223.176.46 with SMTP id f43csp1041218wra; Wed, 24 Jan 2018 09:40:47 -0800 (PST) X-Google-Smtp-Source: AH8x226fpgMyRTkelnIjMYQDBQ0cUVCv6HH7NsofJW9EPWDOCE+3viGZcg5HFvCXRQ0dB2kRErss X-Received: by 2002:a17:902:930c:: with SMTP id bc12-v6mr8952616plb.328.1516815647144; Wed, 24 Jan 2018 09:40:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516815647; cv=none; d=google.com; s=arc-20160816; b=rdbSE6mOFQb/I3PptALGyNLXklxEQUugQwARmlbDAStyqJdi36OGYs7q4rioyCnMiR itucwTDQQQIzaHl+X2KfmgZjaF+nlg2M+kaTdX8+kOhGQEHCdoLOZQ/Cvbl7WkQblpgE WE5XYGlAZI0mQYhiNpE8pxK/mb6aM9E+A2XH4WX4TlU+PKwZZ/7QhZpKvWTVvGPcX/6n G51KP5Kg70enQ5TjLdogDoIC1w1NJrACtCHnQEuMZU8j5OohdzTxc/0+vIqfTguPHwmI 5aLpruz1OgK4kLs7FKu0XKsqh7ItA7XucJN6MvH85CoyUTm/gdFdcICaON7rT5wii7ns D2HA== 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=+p0xuAYEie5tMLwmYaUdv2qo8rg4wfVvJQsYiZFeDHw=; b=cyRIn1x8aAOv2AVSpHl2ZrmL+Yv4aZfInGLXvlcBN3NpG85TwK464WmH8oD35I/yzd Zp4x9BjXAENLScsjNCQD5qOATxlPvZnKZmIxEkXwQU5PD8mZT5xF76BTYHBNV1A6Xjrw NX/I52vndFHdAKnzv5AILZq2krrFepV7xOcGID5w71Ku0bZ2gGSwYFRvgtwfECB63xR5 T51an/sfOO0wFkAFnRm5KON4bEwI9BofJaG4/dzXhAs+VulMwFZ48Im2fAnQwjmFv9w5 oZYdXUYP8i6Swu9Oj3LvczQ/nibFnTLOhPoobdV3o6bNtvH/B2OlcamNxD77f63pf7/T aACQ== 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 k130si373831pgc.358.2018.01.24.09.40.33; Wed, 24 Jan 2018 09:40:47 -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 S964988AbeAXRjP (ORCPT + 99 others); Wed, 24 Jan 2018 12:39:15 -0500 Received: from mout.web.de ([212.227.15.3]:65500 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964840AbeAXRjN (ORCPT ); Wed, 24 Jan 2018 12:39:13 -0500 Received: from [192.168.1.2] ([77.181.242.198]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0LuMAJ-1eoxAm21Wp-011jgi; Wed, 24 Jan 2018 18:39:11 +0100 Subject: [PATCH 1/2] Input: arc_ps2: Delete an error message for a failed memory allocation in arc_ps2_probe() From: SF Markus Elfring To: linux-input@vger.kernel.org, Dmitry Torokhov Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: Date: Wed, 24 Jan 2018 18:39:10 +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:8oTo22gv4kDBRcsn5Ml8Z4e7HQOceEmEpQIFgdjzS+yhRd3G9JB RTR8drIP3+1Zd5b8hX1GWRg3BC/4cOi2N99wooVe+KOrStCItusRVey/Oqj4IcTXtmDD7gO /QMehFrRv8bIvgmpoZH67oi1b5gT3hhvrNaJPkL3EhktKpejWFCJvpQJjk5LrlB3gj3UPp/ uU5pvHIe1LndwqgsFa9gw== X-UI-Out-Filterresults: notjunk:1;V01:K0:RKCNmYdMHus=:7nSdDN3ZuXMhjmO5dzZ1W5 fAHv1QJ5r5DM+8eWqvLVOjP3bJakRxuFA0A1e28Stn500NSVErzoF+DvHAQu4njDUQomOPmk0 Ll8kMiBGPT2L8yvCYSfeChMpCXe/+WDw0VBS5Zi1dCldce+vB5+YcbOmzD54Ab0zx+WB8Er68 9ZD4mOakUS/cqDoY954iqOazHnFxacNsIvFYrf5Uk20QJFFpVLLOOTiC5916pjKXtry+qlijs ujniyeV3owUo9gDgggGLPkrlXCcbKoohfaDayg085+YLSUf13mg0uI8BXNCZlMNIR78SdzG9E RMYtFzQLGQ1O5b9mGPya8TxeWShAjeoy2yGiqH56fZsVj27Ux53QhPkV3dQ3fO2EB5jbdA8K2 eI5AGkcwZJMVW7xaET1/L05ZoMXVOPfrgl6HqZ7N6BzDXA4G8Jxvx/CMMWQS4tKN7srx/MYIe mXnQS4js/Dp5HtzqrRIpmZbcF5iRXJO75NDi3s87t2XsnIOh4t22MNGc8H6o8sDc5/ma0zaaA ULikKk37r1Si5GsGiiOSHATlBALjbHQ7Ynri9oniqmj2DqpQY+HywTnvGP/8SYLbmsBNXFEft OmD7WnmNwhawrgLLblzWkazC0ifLRFbp9j3tRpBjOfrEAjAII99Yhikfvv7hQtNyPgDQtCZDu T2CsFwq2/byVhCZonj6tIBRHttefUFFpnAjKajy3+hUDg7/troz2b5KIOtzIsKycfO8aaJPys Vwetbbap5QStEoC8Sccs7+QLpJijVeaSB/2P2QzvCrBXQc4PtknDZCMN3H/3SyHXaVxLs88Ft Ydxdic4Vh8xmRxeEmCkJr+9PXdhqUTwvUY5uCvCtC1OfPUdCw8= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring Date: Wed, 24 Jan 2018 18:17: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/serio/arc_ps2.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/input/serio/arc_ps2.c b/drivers/input/serio/arc_ps2.c index 99e57a418753..9860b1c1e67a 100644 --- a/drivers/input/serio/arc_ps2.c +++ b/drivers/input/serio/arc_ps2.c @@ -197,10 +197,8 @@ static int arc_ps2_probe(struct platform_device *pdev) arc_ps2 = devm_kzalloc(&pdev->dev, sizeof(struct arc_ps2_data), GFP_KERNEL); - if (!arc_ps2) { - dev_err(&pdev->dev, "out of memory\n"); + if (!arc_ps2) return -ENOMEM; - } res = platform_get_resource(pdev, IORESOURCE_MEM, 0); arc_ps2->addr = devm_ioremap_resource(&pdev->dev, res); -- 2.16.1