Received: by 10.223.176.46 with SMTP id f43csp875387wra; Wed, 24 Jan 2018 07:15:32 -0800 (PST) X-Google-Smtp-Source: AH8x22682gnxkokuk6kKvpR7pGEK+wIjtGpgusGoaW/qqNRG4wQeIkrVrdda9wpwld1HSKUCfsk1 X-Received: by 10.101.77.146 with SMTP id p18mr10773817pgq.75.1516806931983; Wed, 24 Jan 2018 07:15:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516806931; cv=none; d=google.com; s=arc-20160816; b=iXqbAxtQdHXq2iFcga2qpfSSxwV3PihXejer7DUmS3h5M0dn3tlVnim5kg5PraJfFI RZ9pMVAakB7SzZCmIZ2lztCgufAmxKrd4WY2z2qna8Zz/d3NVBPmtfbZ7ul6MiraeMFJ LH61kC4EJGvRwj3Tza2MpPilglWHbXYOX7CIyMFi+pecfTKFr2A3vMAQL8aVBIBO3NfS hVDm5p02dddjP8Ld/XDs2hyoRdt/IWlfHM2jP5xKiYjr/wYXk20dMZ1JMx/AcmAOM/dq B7499Zhm7azCzOU/pjGvRZ2l/hRTc9zRIdS2sTFd3bma2wGtPwLXq56MRFPaZAaUEWGY CCDA== 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=EHyvtG8aYrGwSu0U8gP9n1AKBiJlbu0I5iLsh9PbaSE=; b=zAj3ozB8SPdfGtiJBxO3wxFylWwC7b87roqJa6yXHLoIjdkB9RLjO9obo7tbL949Xu FWeZJwqWE1S0sPgUQP7lYtdTxyBExNcVH+4oJ3m6n6ubsMc2rwx+uOuYiu3aVj0yNxVz 4YlLavKzORDfonJdiikoV4HXBgOAuWWioKuVE3urjtnIvzYOxMgaQ076LXr/kc+lTbZ2 r4IB5DaYo1UrrMCcx6qaZBIplikJebdfpzDn/Wmf2EabiigT9EtGTt0PIkFrgix8duM3 6ATIXH46bSrbmfinjOFgDNc9eFNo8dsvy9lICUFTSB4Hvn5l3q0ge/kTnstql9AqtSVH o6uw== 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 q9-v6si336405plk.730.2018.01.24.07.15.18; Wed, 24 Jan 2018 07:15:31 -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 S934208AbeAXPOw (ORCPT + 99 others); Wed, 24 Jan 2018 10:14:52 -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-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit 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-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 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; } -- 2.16.1