Received: by 10.223.176.46 with SMTP id f43csp2120373wra; Sun, 21 Jan 2018 11:48:06 -0800 (PST) X-Google-Smtp-Source: AH8x226W4opiDZ0niE8yXTcxOS5tAbNFkKxfgAhROa20KuSEUmIygLBA/PeLqgcxXLZE0s4RzWC0 X-Received: by 10.99.111.68 with SMTP id k65mr5237760pgc.446.1516564085978; Sun, 21 Jan 2018 11:48:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516564085; cv=none; d=google.com; s=arc-20160816; b=TFzNjt6WChM62Tp+976VSDDC0RWnL7e+Ilcutj3Ydt2K5t9eXx3UV2pjtFa5Ip5jvM zucVsAtkdwhM5FcBsIobozM+dD2ZxcoTFFHbTNRr/pIPWtaM7IAzCK1laaRcc8zlsFfd +6Sk+6Plcr8ddK/yvz1KfOlpGzRaAOgrQAdW9O2wqwSvOG3uAyTSoY1mjRertAntrQ5B +vh1hxx081k/Kp9G4OC6IphRTlwasu6E8KXhH/KFK8b48VQb/d2gfGfqUgmz45Af0/E8 dXb7us3bqSnDzPlE98LvSV0MW5L1RrQ72vBbk5yyyMQmMIGyyf+KIrxcQyvriIAS7DAc vMBw== 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=VszgdVoQFLcs0scTfJxUSaL+gMwmpcymzOchZL95N9I=; b=T+xIo+A7shGifQRga6D06HebBDToqMf+PUyRqYj0BD1dNJJSmPhNR7WCsHTtSP7V+9 dyIAv7VIJT0rxvtj4Jkc85ogzCi2ddXV7l8Kh0X8LPBFVPrwZwdCNBKtTZzPNQcF1ykQ 4F70GN7mDfc1JRJ4Kb9G0On0YX7KFf9hWX2GZpAgXXP1JNhiG4IT6KFNJxLKAhYEFUmr kKQi9x7LP4m2jT1qRtGkJdDuxi9qL5kHuJa81BesMNaSTJTzGrRlw38LQ0/UTe5qr1QU BaruVZz14NuPTrwxPPhyQMQOvny4SRjvhthsCDkkgH9+ePockWig6WlYj0Dv0cFcMsQj mNJg== 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 u65si11813522pgc.532.2018.01.21.11.47.51; Sun, 21 Jan 2018 11:48:05 -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 S1750977AbeAUTr2 (ORCPT + 99 others); Sun, 21 Jan 2018 14:47:28 -0500 Received: from mout.web.de ([212.227.17.11]:50579 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750890AbeAUTr0 (ORCPT ); Sun, 21 Jan 2018 14:47:26 -0500 Received: from [192.168.1.3] ([77.181.34.161]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LeLKb-1f9M1p2Fy9-00qAXR; Sun, 21 Jan 2018 20:47:24 +0100 Subject: [PATCH 1/2] Input: da9034-ts: Delete an error message for a failed memory allocation in da9034_touch_probe() From: SF Markus Elfring To: linux-input@vger.kernel.org, Dmitry Torokhov Cc: LKML , kernel-janitors@vger.kernel.org References: <44ae37ef-deaa-c963-e0f7-c407159afa0c@users.sourceforge.net> Message-ID: Date: Sun, 21 Jan 2018 20:47:22 +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: <44ae37ef-deaa-c963-e0f7-c407159afa0c@users.sourceforge.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:KFK1P40MjTtdVU530y1Efe5UFq0raBzJzIFaniKKGJk1YbNnj0p dIfGB4D/0hwvpDDhqjHVZDlrt0iPaTYMcTaTp1dG67g1HUjvbsOUVjH/e7kfwOGWY6NbUlU nYAnnjO1JS6lfYdK13Nzz99oyg7vQ0DH92TndVsq0+FPs8SHMdqVC+27IbgiHzpBf74qcOS oG7EGcZvYgqvrT5EKBm9g== X-UI-Out-Filterresults: notjunk:1;V01:K0:dKLrEArJylI=:BLYV7t6BufOdV6PCTknPIr JoOAN5vyqITHQRj8WzkPD58VVyTuBndwYQD4cK4Eypjd5kHzewa0rTguJKZRX1esWPyV6L5rq bVu6hUvE24UvzOYg4go8fr6DIeaWXJBvDhLqdW8kN0sekcPvsnGXZnXwv5XLD15qkTi4u9tb9 Pscjuq05IZ6zKIPZOGLinK36elaHaZffr7w08BXImX807ZtbNPBUtnGZa5gdRHiEy2O8pmdQm t89G/jxMP5JZuYQUz5eT/Qw/cpC0RHVWmvO3CgJgAAnkyXLtSSR2T94exW6bf8Z2J2FoaYcZK k//PSc3iPZydCgxWhb7EqM9659bd7fjzbfh5w2AmB5EbHT6LbO9Vk/HJxDYydWCtx2BlVPHFv wx+kWElaLBDzZx5cLrj/IKtPWi9irzRYIpaHhU6AdwcDM7xBsT8Wnam4wwE59fZJI5EHvUOKh 911tk59zWn+Qd72B2f00QtQhwOXPxI+StBCEnt1XHCELpkVePmu+N+8smcTwqrG9BkgAIsP6A 5tbYVrDPbVRy0+7ls50E6Mk0cXF8MUPxB7hGcRU+Gdczzd9/0uDvhvkrsDAQ2b2jpbUsMKeed Jl9jKFHYxrgv5k3Pl8/FaRHTvkt8rkcdpHbCwe5VZ2isz9zhDs1BcIM/f96wM5bGZ4tCcd9/3 t8K5pY/YuU4sObni1vFcevouTmAlr1Itp8v6Pdjk3DFgpG+xmbZBCLDzB9UO5mPxXEiSHObI7 Z70w0jtCYzm77AuoFK5tV3IANaky15tuUagXm4U61+7AAOAbisulOcNjCyUDnlwbl9hEJ4GYc vecs91Q8wKyJ/UFMW8CYpuRKI/J+GoJVe3ePEabetHZFbI6lUU= 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:32:48 +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/da9034-ts.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/da9034-ts.c b/drivers/input/touchscreen/da9034-ts.c index 8264822dc4b9..b30cfe1e62da 100644 --- a/drivers/input/touchscreen/da9034-ts.c +++ b/drivers/input/touchscreen/da9034-ts.c @@ -305,10 +305,8 @@ static int da9034_touch_probe(struct platform_device *pdev) touch = devm_kzalloc(&pdev->dev, sizeof(struct da9034_touch), GFP_KERNEL); - if (!touch) { - dev_err(&pdev->dev, "failed to allocate driver data\n"); + if (!touch) return -ENOMEM; - } touch->da9034_dev = pdev->dev.parent; -- 2.16.0