Received: by 10.223.176.46 with SMTP id f43csp1215206wra; Sat, 20 Jan 2018 13:31:49 -0800 (PST) X-Google-Smtp-Source: AH8x226xiykahb5nC+2ftHuQBoOcr5/yR/uIHvk1wnywvgw29cuvHWDh/LogqTP3OMA/Tbu+oqfS X-Received: by 10.98.14.3 with SMTP id w3mr3443672pfi.154.1516483909366; Sat, 20 Jan 2018 13:31:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516483909; cv=none; d=google.com; s=arc-20160816; b=b0XETcXcvfWElPW679P6BXX3K5UhxaYE8hiJbn8yrNUSd9FVVkszbAQgRT1r6PGyLT NI0N4RUt05YKwiY0WHCe54H4xm/SM6ZA/o9jnnJ0HIDHwquWSTonfa3u1CsjDx8Q8GZn rgM5CIyG8ik4+f3lajIlVBwYsuZAVToHG/rOhw4cCcwg6JmcYtA9kcoA0MFx02P4ms7R VbIJEF0FZ+6q2WpUrahDzBort8W2ZNlDgwXVpMTp9xKB4vuyW75SnkxNX2EQEbALfN0P pJ3ZjYfjQOyE+R9z+o9WyQVxreO6wgnmFJV+6HbzVdCjeCKVIAdfCmvA1CjjCBgGPUvt b/xg== 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=+HsVPLIAEaNrplipxQ/aTbczW5f0/1V4YkrogjC0qVI=; b=InHaEL/5qfdbkpCZfI0aSOZq9TuOKJKDPfHzrsPxaWcxbicPUuT3ggGJB6HVdhfo5s 1efNKxA1ZJMuO85r/YTc+QWuyC0mzCiT983ACEGh/8i84xmkpJXvONwwJvIyFM5NXGQP HovAwhkXoFaLyaSM6AC/psbSeXbuAEmlmO7peiRe9DLjLnzyW8Fgr/ISts5sXR3mfAK5 cCaTCrOLic0AvtvSMAOMSqFdQWy7BgJfnJgmwVzsPF8InTxpGvmBcR2XA3F7UuCFh9p7 GjxWz5/dw19tdsAXhnI98q1N4g9xzEC7OlQoV5DdCkrsOWuwgDH5j1lMBK2OWsuy/LmT 7DVg== 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 e8si11943239pfi.191.2018.01.20.13.31.35; Sat, 20 Jan 2018 13:31:49 -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 S1756756AbeATV2a (ORCPT + 99 others); Sat, 20 Jan 2018 16:28:30 -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-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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; } -- 2.15.1