From patchwork Wed Jan 24 15:14:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 10182699 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 894D7602B7 for ; Wed, 24 Jan 2018 15:15:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7581C286D4 for ; Wed, 24 Jan 2018 15:15:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6659A2871D; Wed, 24 Jan 2018 15:15:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 107D5286D4 for ; Wed, 24 Jan 2018 15:15:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934116AbeAXPOv (ORCPT ); Wed, 24 Jan 2018 10:14:51 -0500 Received: from mout.web.de ([212.227.15.14]:53507 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933948AbeAXPOs (ORCPT ); Wed, 24 Jan 2018 10:14:48 -0500 Received: from [192.168.1.2] ([77.181.242.198]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MJ1Nh-1ecS1E2TRR-002XJq; Wed, 24 Jan 2018 16:14:45 +0100 Subject: [PATCH 1/2] Input: gtco: Delete an error message for a failed memory allocation in gtco_probe() From: SF Markus Elfring To: linux-input@vger.kernel.org, Andrey Konovalov , Dmitry Torokhov Cc: LKML , kernel-janitors@vger.kernel.org References: <5c4410ab-5174-ce8d-cab6-7979aa61f996@users.sourceforge.net> Message-ID: <6a7cfd59-769a-9e3e-3c24-e7b028d96254@users.sourceforge.net> Date: Wed, 24 Jan 2018 16:14:45 +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: <5c4410ab-5174-ce8d-cab6-7979aa61f996@users.sourceforge.net> Content-Language: en-GB X-Provags-ID: V03:K0:jPol4oPZahvY2et2nW31tjcQCJfx7ayYZguRB3Ta11K5fSHIyv6 X9lW/0tONjq6yS3CTg3Xa8kJ4fnjbVYukJb4mulULzqPjxRh1EhPSCjGUL6X1ImQDNAD1rK dnkYBk08JQhqLuEhVU9kINq5+1484qU5kVhtVummnatHizZiWJNFDXTwJq36oqXiOmZqEyZ uSRM3zBPp1Xep4Q8/m+Ag== X-UI-Out-Filterresults: notjunk:1; V01:K0:WhyUzaApm6o=:CtLtJH40wbYe1HamF9lwjl A0E7MNdAf/xoG0cmOX/tZAkLIYqOG+uII3lgXEjQic6+7faF2WHfvuGEI8Hm+3Zf1ch15q66P S8iLCe2Vox4SZ2KWjcYq1RaIGq4lwMTJV9kmChgo+ZH9W1BQGrlttU+/noWiMF1V9T4yMu3+i A7gSxGRD2m88T6cBKqbnn2Fj2/1xz4KpKSyYWn/fr1sxS7e5Sx2gLM6yy5PfPIJsnqvO0f4zd LxuK3Z0lT/eSCLxaP6xq/pSmu+AWArL7xFVFcFICl2J4Bkwc8Ke9cxKJccidmrDd0Uc0yQ5dc 2Z8pxB0HBDLGgdgPro7sZQfByFLO3VTtI0ucsoTJkIoqvGHlM4Eg2s18mdrSczYX60slDxoXQ WDEqbCB/Ce7uOEVWkbVG6S4x3JCyI2APTge85vq6QVal5oayZfEsP/+8NzuDI4sx4s6hx7/fO u6eV0Y3K/VEZ3I9oPaOvtR8QYf0d1r9Hu/OiyQRWUWoekQI20Gu2UCUk8iTJVXi4lh6JYBWrN 2/tdWsafqEOXvdfsTyKldW9SawvP7R9tQ339mi1sO0JnblSyAmw2xhzYJrYlV//Gvit8e6z1Q JIuqmV3sx7+Hil7rPQRmYoS/LH1MOanouItNrCor9ScdamSxy2aTipZXgHpDsEDqcRvZGUj3i +vPOkuVn1iC3u0FXpCegbOEATck95/4HzuZPhukU5IA76PuY2x1jLfHm4iDLnr516ogRxJf32 9bFgmKamO5Iqah69g4TcmAUBBUy/xB1MKreXCPE4GyqzOfakZjI2U50vAZLbZOYi8uW2mXoOj djlPwc2lMq40pYhE62HzAaXkkqjAocoynV3n0HlNjMEprLpX0M= Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Wed, 24 Jan 2018 15:03:33 +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/tablet/gtco.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/tablet/gtco.c b/drivers/input/tablet/gtco.c index 4b8b9d7aa75e..f2670872735f 100644 --- a/drivers/input/tablet/gtco.c +++ b/drivers/input/tablet/gtco.c @@ -902,7 +902,6 @@ static int gtco_probe(struct usb_interface *usbinterface, report = kzalloc(le16_to_cpu(hid_desc->wDescriptorLength), GFP_KERNEL); if (!report) { - dev_err(&usbinterface->dev, "No more memory for report\n"); error = -ENOMEM; goto err_free_urb; }