Received: by 10.223.176.46 with SMTP id f43csp2102785wra; Sun, 21 Jan 2018 11:20:49 -0800 (PST) X-Google-Smtp-Source: AH8x2278WDe8vvRuk3NUyZPHNnpSSrg5gV0Ro3QS+EjE/OrGsOI0JnU0bvw6RWMfExfBFMdydhNw X-Received: by 10.99.102.1 with SMTP id a1mr5137270pgc.452.1516562448985; Sun, 21 Jan 2018 11:20:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516562448; cv=none; d=google.com; s=arc-20160816; b=V+o6HTiJxxmkkGWSnf7iWxhHNFgidSX7sjElsgyTrhc5EzNQGT+jTt5xUIIctVAlmG CDmSJm5CEjTmMXCQMPboNcYp1CRv+35lDk0LRMSZnVnPpHSf9qHEN7WmKkLJNyx7JUBY t8EZtBqj77zHlVR8bN9UVpeNBtjhPthMs2baKgj+BlDRoUc96OMjF9Z66bg5P/HZPlA0 EBomhamajiEWN9PfabFuehwW1sgWlauKbV0WFflnfqQ6u/TyEhhEXTqlwXPhplJmZEg9 VqJw8tZyBWHyLCduAgffJJHwxnhR/DGiglCKO9ISUUI1us3sWf+UBTm48IPQ5S/XGXfA NBDw== 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:mime-version:user-agent:date:message-id:cc:subject :from:to:arc-authentication-results; bh=dkWB+31zRQUcn4qnfBl2gj/zyE0Fx4xyjFFv9nireJc=; b=rk1pRzOpild6n7tBJADdSE5s6xi+wyMFY02VAZOUcVXKz5XwfImPR+gcvmApSbGzXi O41ZMpSO4ZqWybERYB14F3OjCP8g4j5hcvKcwgNpcnWOxt2T0tPouDjE7/OLmyzKioSm StOpfQeTx21YCw6wrNMUpeUAUiqfH7PEya5DQcxDfLdP4IENwnvFKikHxPZk6/4fMqyl O4D42bFt8bRnXpTlUZQGUKzcow2MPDwQpCUplmQ79+GYgnmsS2WuRwtYDU1fQCu96j18 UaBEC/LxN2/HwFF9wALYDhAIKbd+Y0o5R4pKvBPBYpk9dB/cYT/IB3dGxEyRrZZfVEs+ iVsg== 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 v69si12443190pgb.303.2018.01.21.11.20.34; Sun, 21 Jan 2018 11:20:48 -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 S1751412AbeAUTUI (ORCPT + 99 others); Sun, 21 Jan 2018 14:20:08 -0500 Received: from mout.web.de ([212.227.17.11]:62373 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751238AbeAUTUG (ORCPT ); Sun, 21 Jan 2018 14:20:06 -0500 Received: from [192.168.1.3] ([77.181.34.161]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0Maaur-1eO9fz2Hjl-00K9qL; Sun, 21 Jan 2018 20:19:02 +0100 To: linux-input@vger.kernel.org, Andi Shyti , Dmitry Torokhov , =?UTF-8?B?R8O8bnRlciBSw7Zjaw==?= , Martin Kepplinger , Rob Herring , Simon Budig , =?UTF-8?Q?Stefan_Sch=c3=b6fegger?= From: SF Markus Elfring Subject: [PATCH] Input: edt-ft5x06: Delete an error message for a failed memory allocation in edt_ft5x06_ts_probe() Cc: LKML , kernel-janitors@vger.kernel.org Message-ID: <45f8a6c2-423b-5bc1-6512-c5b954c5620b@users.sourceforge.net> Date: Sun, 21 Jan 2018 20:19:00 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:vJy6o8OcWWKclHUt9yUD6+XHvx+jVbLzCLxoqC8Fhw6hG8ZeG19 vQ9XDyH+Au4iIf9IMFpthPT+WipynxHe2MV9uCD3FHSzmnvY4S2DT6XvfSkUBfyVoLt1KKT YWFGz/gZRICPBrLL0kGvH+Y7dct/68Ly5KhsvpOJUgU+W2xtgF0oPjGnKfEKih4UxdnBoSt OrVHSXT/S/Pg7SrZfCbRA== X-UI-Out-Filterresults: notjunk:1;V01:K0:5ep8dJlPtLA=:XsXbas3trtquswSfY1aTUc MDfXoUJ8CBBtHOXG8tOJeN5kHYHnWmZDKHfBR60ghej42bBC5xa/Q73pJpf6DVzTfn4cvG0Vp 5OQyDgOpOY1VUBAehuhESRg79A3ZrbwfDZtxpX4IROCJu7RXX3Duc4GvSGE9NNhLebA8k6jrn 8x45TlEP6UkufjqIpcKrLBtUDrKCX3/PXED/kvhWP4X4wYHZuDuNQbRGVpUxkzuWumNbgLmxF nH1obmJltBJwrMD7+Em4ZQ7VamJNQhpOKbwtLyt0a2uKlSvhlb34lKtJss8FKfhN8pox94Hxt uHAjYcbD2abHvPv5tZyqJ67Vhy5A23kI3GViyUL7aowPjbHaWQiG0MDCqs/sv3WhJ0fX2toA4 sO1AzrjZLKF9oDx7Ippn4nalqAWRh0AqHZ9e/9LnGbMzKMSyQo+IF4/FMPWvlNXWf59w6ZSpd yYYvWUwgZoP3cMBVKzTEtGY7SA2B7NiattIJhC2bpPdVDVNtZcM94sgtIcnqTZ7k1QQE/Xfly c6JBvSjR922V6WlIEPiVDRI0aKYqu6dOHJJ9+XDPzgJSK89ORKCiI+Ook0GgoulRvY2RJW6Dw dzqZc0s+yW/izKQC032sklK7TUtT3kHmzEPNoh3GFhLNBca8cVJlrjY6zhy0NizHw5OU5U0Y3 SCR8AG/GhPEPqiFFVxCMX8rcx9RL+RojpPOBKZf4p7V5LGeB+rXV5Z+XpfVEoNcn1Y72EkZUn ghh/Yhi+BPPCIlvij0v0Al5UWy937XCaFQ2qrtGdFnZBxbY9e1EdFLftjWV8o1oNgBoTtZI0h QqZ4li4jryPlkq8SkZuqj1HL++zPtr56gWHtNKmO7aprs+WW+o= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring Date: Sun, 21 Jan 2018 20:10:03 +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/edt-ft5x06.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/edt-ft5x06.c b/drivers/input/touchscreen/edt-ft5x06.c index c53a3d7239e7..9d2799c90150 100644 --- a/drivers/input/touchscreen/edt-ft5x06.c +++ b/drivers/input/touchscreen/edt-ft5x06.c @@ -978,10 +978,8 @@ static int edt_ft5x06_ts_probe(struct i2c_client *client, dev_dbg(&client->dev, "probing for EDT FT5x06 I2C\n"); tsdata = devm_kzalloc(&client->dev, sizeof(*tsdata), GFP_KERNEL); - if (!tsdata) { - dev_err(&client->dev, "failed to allocate driver data.\n"); + if (!tsdata) return -ENOMEM; - } chip_data = of_device_get_match_data(&client->dev); if (!chip_data) -- 2.16.0