From patchwork Sat Jan 20 21:28:16 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: 10176749 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 E50776023A for ; Sat, 20 Jan 2018 21:28:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D43DB205A8 for ; Sat, 20 Jan 2018 21:28:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C873C2074F; Sat, 20 Jan 2018 21:28:26 +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 5EA93205A8 for ; Sat, 20 Jan 2018 21:28:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756695AbeATV2Y (ORCPT ); Sat, 20 Jan 2018 16:28:24 -0500 Received: from mout.web.de ([212.227.17.12]:59268 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756652AbeATV2Y (ORCPT ); Sat, 20 Jan 2018 16:28:24 -0500 Received: from [192.168.1.3] ([77.182.145.92]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LuLt5-1elyqc2Y5v-011lGQ; Sat, 20 Jan 2018 22:28:17 +0100 Subject: [PATCH 1/2] Input: sur40: Delete an error message for a failed memory allocation in sur40_probe() From: SF Markus Elfring To: linux-input@vger.kernel.org, Dmitry Torokhov , Florian Echtler , Johan Hovold , Martin Kaltenbrunner , Martin Kepplinger Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: <122986b6-b7f2-9b34-b11d-4d63557a2b97@users.sourceforge.net> Date: Sat, 20 Jan 2018 22:28:16 +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-Language: en-GB X-Provags-ID: V03:K0:4rWlIdOmVKsB5fw8cT0Rctlx7dQ9AuWL83BUsJkNUy2WGiCzlvg 8VpFbj+HeJpqfQmrrUUaB8f5YCD6CYAmg0nMGkmfh3+FX4zyhQG/RTiJrIOUtejHusXWeol eDf0/lpvn8rK9+NEnvvhxv6EAlUyNhQ1qdcodsOg3docFafEZuZxgvxXsJavyWyqwrv8meQ 3JOGvWFJnfEcyAfOE9Upg== X-UI-Out-Filterresults: notjunk:1; V01:K0:lTdC4qc9CF8=:J9mEgHvEAPSNR5ANjKezVP yjp3tVq7fsoXyCD2CMvYiQDiHJ6GpDnx4vbXDhPbgc8hto3RpiE4tKlZu4BP7A0HhOF4dQpoa LJXhBVLXxWiirMOnHxWfPnbJjK4OaDvHMa/+JlTjE8dy49cgAF/PsSyHHFNXXUrSAga/OXanJ 5UkS41XBJPPpodPpTghtg9Obi3r7X6t8t5uaZ6P5uL1u77Nf/Fjc4cbGHDPRO+JjLbzlCNc+S 5TqcO1GcdpRq7car660RrQ2ZtqqQtochVi9OEJBQMsWBEoX72dSUSLTrhPI8X3mw2AFqeJ/MG 3zqmCqjEnYwqd/f11oNGCy2Sh9PX30ETR9gL0eOb4H8FApH8Ew3C8o/KWclf6JWkf59QL9cw1 SgKAvxGFKhpmBzSzLUoMDlPukxRcimyK7hi/MIsKg/EBn3lv+ZW1TUupirEOaZF6iLgalvi8L 5GA0XEZYlDcGIwXoD3X+25EfyzdSSvda6HTvO/62hfwyUcfuaLNMvUymB+RuI7o7kOTD2F9iS S0cABxkgnTMzMXEVuv9nYZvPJq7PX45Ag06mPFOPtydFiEgYu6Ir9C07Z9V9lYybYUYgt4Z+1 7yoeNkA7jkhjSK+rcUWiZyhPgoThNXZGV3q/UcbsPq6Aj23RaYtoSS7KMXiFjibi9D6XaIB2r kNrLdB72QG/B6aw6f/AdBX1043S7UggCT22kTNYMKnvq/M4/itR3XOr10IpeHY6fJweM23VFm aSlqumfwDeJ/Kceual+3A0Vd+bLaQtyYFsTmqYN9kZawQASVsCZBeEDN+S1q2iHl5S2L56r7L 8bnXsZrWL/uGTQhqNnGIwi6NTIaSps3A1KmstvhTeKHpm1L6q8= 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: Sat, 20 Jan 2018 22:11:24 +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: Martin Kepplinger --- drivers/input/touchscreen/sur40.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/touchscreen/sur40.c b/drivers/input/touchscreen/sur40.c index f16f8358c70a..c7a0a92b2044 100644 --- a/drivers/input/touchscreen/sur40.c +++ b/drivers/input/touchscreen/sur40.c @@ -591,7 +591,6 @@ static int sur40_probe(struct usb_interface *interface, sur40->bulk_in_epaddr = endpoint->bEndpointAddress; sur40->bulk_in_buffer = kmalloc(sur40->bulk_in_size, GFP_KERNEL); if (!sur40->bulk_in_buffer) { - dev_err(&interface->dev, "Unable to allocate input buffer."); error = -ENOMEM; goto err_free_polldev; }