Received: by 10.223.176.5 with SMTP id f5csp2946429wra; Thu, 1 Feb 2018 08:26:21 -0800 (PST) X-Google-Smtp-Source: AH8x224+/werFG7UHJOBh2xTe8JBRGMS58/SRlVBsy3BbOTPmHJZUqnhUzf2hwQwFDfZZwrJGH98 X-Received: by 10.98.69.82 with SMTP id s79mr37276363pfa.214.1517502381315; Thu, 01 Feb 2018 08:26:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517502381; cv=none; d=google.com; s=arc-20160816; b=LLI6rNObC5lQOYy95xGafIpAaxAtMnuW74DUUV2a2FgJDbKYm5nCqUAVE3EhBWrrJW daJFrd8MaTyJT6t8Zevi/475jUm+J8CX6lciEYVmBRluHFaxjzBw9Xday1sGVvT5XWkW WKDy6uGpKDFOy6hOGfcK5xnZNyy5KJqnWiVVoHDd9dC2Z7msdD/XDD/yhdMpAUWuLXTJ /1J2kRsoJZq9+JXwjTBC9OS7Pi4/VWmMy0leCtYHuucQyGyENGt1TZAJNMsNvcRYHH0x CjvkMWzjxiwbD/XnMcWqeMRNR8vYCT709n32KmFp1+3Ox2ySzqTUyGwUGZczCAgPvBuW r84Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:reply-to:dkim-signature :arc-authentication-results; bh=e818l26MgO3O4Gisb8OdXyZEPCec/6ovAtjczz8ibnM=; b=hftLDSqosZ5Zn9UwHa9/xTuonlUPiPGJYyyYo04l92N2rhmuJFFVVSRzCZ8XCGamAd ay71jOb+V3OpgNyQNGntNjuV4oMLF7y8mjzGFQH2XDEJZyc0c2WyqaEGSDx8s9HskYvs 93bQ7hF3OeAgvCB8oxF4wORMVRPUnSaauV/y1tvSms7X7CxHSRdMFmY0se20yzY+XOxI grl4/iUVC8nWhZF9cBXX7MpH+0YggCdM3WbkV/lqD3Do+yMZB/Zl9q9UKngRSUWQPrPx gls4zjKzsatabuxItw5O+4wxNC7UNxFanf6asg1MV5iIT9wtF8F97yHxnL/fj71XWL/D Vmrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@analog.onmicrosoft.com header.s=selector1-analog-com header.b=Is/gI57P; 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 h184si3251286pgc.148.2018.02.01.08.26.06; Thu, 01 Feb 2018 08:26:21 -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; dkim=pass header.i=@analog.onmicrosoft.com header.s=selector1-analog-com header.b=Is/gI57P; 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 S1752607AbeBAQYc (ORCPT + 99 others); Thu, 1 Feb 2018 11:24:32 -0500 Received: from mail-cys01nam02on0085.outbound.protection.outlook.com ([104.47.37.85]:27948 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752088AbeBAQY0 (ORCPT ); Thu, 1 Feb 2018 11:24:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.onmicrosoft.com; s=selector1-analog-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=e818l26MgO3O4Gisb8OdXyZEPCec/6ovAtjczz8ibnM=; b=Is/gI57PcR7gqmDnp3q+OxmLl5LHeOdPUV+QfcLw2fdhm/CBRGFxmQN9GJAu6zPeyvBU6PunWGhU3PmbSMInR+Cw186fq08099tvNWTuZfzAr3MOIMJLS5I/9VaB8DB1N/PuiQetXh3yftEgGcp0w1p5u+O5QhilYZ2DrLwK2Fk= Received: from BLUPR0301CA0023.namprd03.prod.outlook.com (10.162.113.161) by DM5PR03MB2713.namprd03.prod.outlook.com (10.168.197.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.464.11; Thu, 1 Feb 2018 16:24:24 +0000 Received: from BL2FFO11FD029.protection.gbl (2a01:111:f400:7c09::136) by BLUPR0301CA0023.outlook.office365.com (2a01:111:e400:5259::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.464.11 via Frontend Transport; Thu, 1 Feb 2018 16:24:24 +0000 Authentication-Results: spf=pass (sender IP is 137.71.25.55) smtp.mailfrom=analog.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=analog.com; Received-SPF: Pass (protection.outlook.com: domain of analog.com designates 137.71.25.55 as permitted sender) receiver=protection.outlook.com; client-ip=137.71.25.55; helo=nwd2mta1.analog.com; Received: from nwd2mta1.analog.com (137.71.25.55) by BL2FFO11FD029.mail.protection.outlook.com (10.173.160.69) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.444.13 via Frontend Transport; Thu, 1 Feb 2018 16:24:23 +0000 Received: from NWD2HUBCAS8.ad.analog.com (nwd2hubcas8.ad.analog.com [10.64.69.108]) by nwd2mta1.analog.com (8.13.8/8.13.8) with ESMTP id w11GONs3020052 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Thu, 1 Feb 2018 08:24:23 -0800 Received: from zeus.spd.analog.com (10.64.82.11) by NWD2HUBCAS8.ad.analog.com (10.64.69.108) with Microsoft SMTP Server id 14.3.301.0; Thu, 1 Feb 2018 11:24:23 -0500 Received: from [10.44.3.40] ([10.44.3.40]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id w11GOM7O027618; Thu, 1 Feb 2018 11:24:22 -0500 Reply-To: Subject: Re: [PATCH] Input: adp5520-keys: Delete an error message for a failed memory allocation in adp5520_keys_probe() To: SF Markus Elfring , , Dmitry Torokhov CC: LKML , References: <9d0729d2-59ab-f116-aa12-0457ebde0041@users.sourceforge.net> From: Michael Hennerich Organization: Analog Devices Inc. Message-ID: <4e9d8aa4-3e01-4fb3-d0b5-42b02522a15e@analog.com> Date: Thu, 1 Feb 2018 17:27:25 +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: <9d0729d2-59ab-f116-aa12-0457ebde0041@users.sourceforge.net> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:137.71.25.55;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(376002)(39860400002)(39380400002)(396003)(346002)(2980300002)(438002)(199004)(189003)(36916002)(72206003)(31696002)(23676004)(2486003)(83506002)(6246003)(8676002)(478600001)(76176011)(59450400001)(53546011)(110136005)(54906003)(316002)(106002)(58126008)(4326008)(8936002)(3450700001)(15650500001)(106466001)(36756003)(356003)(305945005)(5660300001)(229853002)(336011)(39060400002)(246002)(64126003)(2906002)(77096007)(575784001)(230700001)(7636002)(65826007)(2950100002)(43066004)(65956001)(67846002)(26005)(15760500003)(50466002)(31686004)(47776003)(86362001)(186003)(65806001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR03MB2713;H:nwd2mta1.analog.com;FPR:;SPF:Pass;PTR:nwd2mail10.analog.com;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11FD029;1:MuuvWNnrbCtsP6LPZmigbq1TTj04ZXTdmyAnYGCT4TKBW3SFQQXkQMV8UIbbjApSkDf8+iXWZZGfG5snOEjpaAfPZtdXve4s64KNNG6h9kVMZ4swZAIDbj19ZWuH5/Wy X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c5723806-fc64-4f30-50d3-08d5699041ac X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(4608076)(2017052603307)(7153060);SRVR:DM5PR03MB2713; X-Microsoft-Exchange-Diagnostics: 1;DM5PR03MB2713;3:OzhhInSBXylWAO5NAeM7n/DvfVlfIFiE5G295AHtS1opGn6BbPHKwr60M4dEWRfZoNW48QLNCgY6R4SG9POFLl8hDO3MaogHaomFKShmK46exHY8v4bS8QdZnUmv9wqrB5N+QbmXEFkHe7XNFSY16r5tTHQzgeK7rsck8ituf9Kyl2ANz1kyP7gxlRm8xlIlhsRGb+bf3yD6IT3K7zjCz03vr/FN2gsU6rGyH0WaPdM/kW6mTgx0DwMnSVEJvvQk8wT3NL+E3sLmEFu8MbFmGUxxVxVx6eFCq/QdQnvsVPMkZwfNvEvWTpE3pb1XEuy4eiILZ9FPMyEhtscGlKcfAiC64MNQ0Z6TdctucEtxtS8=;25:rcPOG7KhW8YQRji3MZUd8j2q4FR5ptnLOGidb5uJtMsZUKoec+KBHN27d9z3Z6N7KGFEESeZVse4iCeRp1vD/VPyj3LA7AZC4zj7z+aXQBPaMWoStrD9ZRYGwBuuEweQeauwsDPcvyxm5VRsJieCbk3T+iqbtvtNrvbgVQtuFybymKz+FkI13Sn5Ia2vFb4U/DFdyqYdGBHp52oklgFWZGaM0wjoEibnqJMaFRQcxxXwErkwmQaV0Lo0mKlTD1z8KC708YIh/VmevdkK8+8bTUCsUVZnmI9+LXxb6xC/VTbQ/3LKNO2JXazXdv4j/XxAtN8AKpJU4ALVrlqFmlbkYw== X-MS-TrafficTypeDiagnostic: DM5PR03MB2713: X-Microsoft-Exchange-Diagnostics: 1;DM5PR03MB2713;31:TkUFMgfD9I/oPwqWgh8NxL843G4tqQVio9ilGN+po+OczE3TuKvsRuCeC1pb4FC4U6KOwnK8ydlLttFAKsPVTXHbdRFkfpcCM2R9KA3nw11YOlaL49vQ4bRDFQPARspvzt/Ht7AxTmYV3cdK0Piqp+DU3OsXnCqrPT7i/HJ7dwLHboKWNYcpLfG/t/pMBUIbF1O16iafDxv7QU+xEYg5gz9zc0wH/4rTIZQRb5Kb7cA=;20:ROlVkqfiTpiYjhVOGoMltBFA4qVOb0bBxtE25J84l12aEZMjbcahNFjbn4f9PoEmfQSxePUL5WLfh3k+usyPUARi/xbE9Vy+prgum1HdNms3pno0UB3rDodB2BYluQmieSjgb0rf4Tn56ecMY7LBfMqXEsNSZVqudPK5fUpy37eYv0rpmv5I8dTOa8rLld1jGx13QegQzEHS0l0jcKNKMzaVuCJjClocH3Xf2raJaP2oYZP8DV811kw3eqqYqcTlMiYm+Tc2qnTCQ1t1VKDq7QDYVk0Xlqugy5MPaJHh5dRX3OsyCyABiZ7dXZqEWTdRWpSyTo7wsBTmTUPphN+uHbnXaybngKSFjM7W+WLQ7O9/I7ytHNQRScZydA+6vz5pkCt8kAXYWaPdKo1btG93DSyAVrNzth0hktLTE1xo+8D294xHGNwffC+10Acz1B6D6i1ys9Ya/Fvgre6YIcftH278+6nSD9Qi++dFlvM60y4y9v0esmGqzXrOA9b696D4 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(232431446821674)(42262312472803); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040501)(2401047)(8121501046)(5005006)(10201501046)(3231101)(2400082)(944501161)(3002001)(93006095)(93004095)(6055026)(6041288)(20161123558120)(20161123560045)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR03MB2713;BCL:0;PCL:0;RULEID:;SRVR:DM5PR03MB2713; X-Microsoft-Exchange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yLedJc3nOuW3HprsVA44=;24:HWd6rtf7scaXi5I+v2aopfa8hUCLaONWapiUmrLxh5H0t4Xk/4qup5UBN1ovUboA0iyfH9upFF8Gfwqbn5WqLQPZSujXGw20AxDq+Ceg2Gw=;7:xmxst/IatFDXC4ertUj8ke4h/cUMk4JbOGZOlF4hirsK27v3zldgMr/Z8d4rSeziVa3vOH4o51vMu6Xo5beyRCVfRy812UjGIT7WHIu+Noat1CqOC+bS0HsD5Ym4paQVMo7PIwXCPLjZSZCqIGfgytvOT5PkffFA9FBw1OgoYbjwwOfd32cxqqBiBjUXVcuLslFXHtShFpBmUhVasJ8y8468qbIWlppFP+5wcSGiBQPgoUJU/ncfl2bYzNqnKS2S SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Feb 2018 16:24:23.9564 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c5723806-fc64-4f30-50d3-08d5699041ac X-MS-Exchange-CrossTenant-Id: eaa689b4-8f87-40e0-9c6f-7228de4d754a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=eaa689b4-8f87-40e0-9c6f-7228de4d754a;Ip=[137.71.25.55];Helo=[nwd2mta1.analog.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR03MB2713 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27.01.2018 15:20, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 27 Jan 2018 15:15:52 +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 Acked-by: Michael Hennerich > --- > drivers/input/keyboard/adp5520-keys.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/input/keyboard/adp5520-keys.c b/drivers/input/keyboard/adp5520-keys.c > index f0b9b37bde58..72e01cb77881 100644 > --- a/drivers/input/keyboard/adp5520-keys.c > +++ b/drivers/input/keyboard/adp5520-keys.c > @@ -91,10 +91,8 @@ static int adp5520_keys_probe(struct platform_device *pdev) > return -EINVAL; > > dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL); > - if (!dev) { > - dev_err(&pdev->dev, "failed to alloc memory\n"); > + if (!dev) > return -ENOMEM; > - } > > input = devm_input_allocate_device(&pdev->dev); > if (!input) >