Received: by 10.223.176.46 with SMTP id f43csp2563920wra; Sun, 21 Jan 2018 23:01:12 -0800 (PST) X-Google-Smtp-Source: AH8x224Zk7c6gKGF38SSCAmz3IhQpN9VKVgjaZUSdPEgM/oi5RNJ3lpXrx6sO1cRao5vVGrxmih0 X-Received: by 2002:a17:902:8f86:: with SMTP id z6-v6mr2905052plo.352.1516604472148; Sun, 21 Jan 2018 23:01:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516604472; cv=none; d=google.com; s=arc-20160816; b=yiVRtkz/p691/BA4Ia0Mluqr5zbUnZ6TtsxWjug02XjDaR/PBli5bJkmj5unVU/KJT k6abYcd0hA4B/SUHavxLIlcSwY8wM3HUnWjOTKfciRwAfHPgLhBIw+RyhS+6DA7zqbto 6HiiH2db+c7Olk8E1BEu1kTqYt7oR1T4q1qJ82wKmGRvEQWKyuWykUoUlhk/l/UcEB4X Pn2AMY4luUuArRB9WcVGSb4csxrZfOTBgLQ7zRZ/t0pL6Vc16ehNRNMu7fn8MBfjyT/m 6Nv9AQQtCG+zZ3X4qxrgf+wKVqjnviw3SQIzqOEQwMfMG54q0OsZqB4EOtLcRHZK16IJ C8xQ== 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:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=5YuzVxkhi9hxHeLBDM7btQC4qpnWRMw1LfXLtA/E/ic=; b=Mjg/1x5ja/JrQjZ9paQEabEUQ/QtyuajeTSoLIOX54ai2WLeh8YRB+Chnybd736hV+ lI0RaW1vUfuP2cfU3g/DpwBruHSruvFU3P2HoZs9fgJyiGoGVeUT8NsR5qCCPN2zEb6A aZk4Navvu2oEP/y8Hhk4u/ZuXxwSpjAAEHGShjKjdw6sAlFSJTGNA/e5OQPVNovgSzU6 Rca7yEPMKtd8e9UkUsp1P/uYjbXG8nQEC6Vkv/qeSgfeMmBgug7+BUWAM2CcGr+3zX7r gHFnDIT4j5qSQbjl8vZwQy4VQeupDE2DKVNQbsvhZyf1qHQhR7y2zgYBAdPOQHf/sDAk AxTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@posteo.de header.s=2017 header.b=AqOecJwB; 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 j10si15022070pfk.351.2018.01.21.23.00.56; Sun, 21 Jan 2018 23:01:12 -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=@posteo.de header.s=2017 header.b=AqOecJwB; 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 S1751137AbeAVHAb (ORCPT + 99 others); Mon, 22 Jan 2018 02:00:31 -0500 Received: from mout01.posteo.de ([185.67.36.65]:43016 "EHLO mout01.posteo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751003AbeAVHAa (ORCPT ); Mon, 22 Jan 2018 02:00:30 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 3AE9E20F2F for ; Mon, 22 Jan 2018 08:00:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1516604428; bh=jywvCr6fTSzOjiLIBPJxEi75KvWsOOp1RZ/X7JOepW0=; h=Subject:To:Cc:From:Date:From; b=AqOecJwBwNStsiFF5W9WUeZZqVW7vTJ2/tXYwbO8ZM97KsJRN1Qp8x3ntbgaha6+M G1MIb9h/BgF7LpDH99VJDLPQfeEroJRgOwX1jtXNjCGqdmWohYYVVsVITLsCAC17vt WfF3bLhW5/gnsRDQ6jaXrYj5s5yiv8n10GkZxFd0HeYnxAuhlshyzLflhwXHwbNKT7 kCOl3YsEu7MctDYFmt8nYGCyToMR5n+DAo4jyCtMIJaOHjB9kRkdt/a+kh2mu/loUg kZDsoW8CVCh69E8zyGYAv+cSl6P9c4YIwuKqJqhThcWijakbEwZ2wDUpWOTBS7WiRl UbxAhGTwl1yvA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 3zQ2Pk18DDz9rxM; Mon, 22 Jan 2018 08:00:26 +0100 (CET) Subject: Re: [PATCH 1/2] Input: sur40: Delete an error message for a failed memory allocation in sur40_probe() To: SF Markus Elfring , linux-input@vger.kernel.org, Dmitry Torokhov , Florian Echtler , Johan Hovold , Martin Kaltenbrunner Cc: LKML , kernel-janitors@vger.kernel.org References: <122986b6-b7f2-9b34-b11d-4d63557a2b97@users.sourceforge.net> From: Martin Kepplinger Message-ID: Date: Mon, 22 Jan 2018 08:00:24 +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: <122986b6-b7f2-9b34-b11d-4d63557a2b97@users.sourceforge.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-01-20 22:28, SF Markus Elfring wrote: > 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; > } >