Received: by 10.223.176.46 with SMTP id f43csp1196166wra; Sat, 20 Jan 2018 13:03:31 -0800 (PST) X-Google-Smtp-Source: AH8x225P7KDeIHB4NwMBr1CuWmihTZSa43EIMLxMD/EkHWIopEy6s/0RF7LK3zbFZashv+Bl2EhN X-Received: by 2002:a17:902:b288:: with SMTP id u8-v6mr1274849plr.291.1516482211672; Sat, 20 Jan 2018 13:03:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516482211; cv=none; d=google.com; s=arc-20160816; b=jA/aCFfAILU5pK4XrG4XnxjLNFCAuFJTTsmHqIbDxj3BHD6Zw7g9G0q6XO8COzSTHB p2LrjjvE679pln3S40RbQrDA9w5cKsXOxPdqNz7iLmVQyA9mrZer0FoX79Prko4g+CoU QwmIYFtKkMotw2A8IXm9j07jjDvNPWmSSBydT3WFC2JUdrCJ8dSNt4rFBA5MBy4ig1iI qYQPGBL5sQy6DILh+B6cBoq05OhNiXOiI+No9ymhGKo+NmXotHPdHX1L+R0Z5SBt81yz aDgsPO3PI1YcrPUVwKJTFDRFA2sfC2utozVKhlUZb2FK8hU2yWqA6ASmjSuD5ZZNG+C1 7dlA== 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=0HvLcz1xwTu9EG0h2plmWEDezeq67tjWqB7qK1kj4yM=; b=ZbO30ro6SxsvipjH7wwlP5ZC/YmzUDN57SdaeSZ+zXymzJKZJ/nTV6wYwm4adzWEKN kpVFjRwLwmC3VJDDJg8WA2wB+JIThuIBSo++MpSAbLrJh02IgMPfJZRttQ5+fLcEvbSH FdgMI5PraG6l2+tJgotvcy8GxqAzSDKscrfbkhv/5jmsb0+J9ucfhPK7yGWYvExVYzhG SNiB5YNOdLEv+HrMh3iu+/ZNIe+TXAeBxEqMexa6dQf56ClEHw+a4wXhignFnWS1OAgU W/d8uR8I6Ik9N6ceyXmIk4crEIselmVDtZ4w9JMMYTsSoJVem7SeT2dckM+bqwbsDctR NCyQ== 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 j65si3493370pgc.323.2018.01.20.13.03.17; Sat, 20 Jan 2018 13:03:31 -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 S932696AbeATU70 (ORCPT + 99 others); Sat, 20 Jan 2018 15:59:26 -0500 Received: from mout.web.de ([212.227.17.11]:56730 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932196AbeATU7T (ORCPT ); Sat, 20 Jan 2018 15:59:19 -0500 Received: from [192.168.1.3] ([77.182.145.92]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0Ltnmz-1emWBs0ZxF-011DM4; Sat, 20 Jan 2018 21:59:17 +0100 Subject: [PATCH 1/2] Input: tps6507x-ts: Delete an error message for a failed memory allocation in tps6507x_ts_probe() From: SF Markus Elfring To: linux-input@vger.kernel.org, Dmitry Torokhov , Yegor Yefremov Cc: LKML , kernel-janitors@vger.kernel.org References: <1ee278a0-a855-cfb3-fd04-24034ec42a65@users.sourceforge.net> Message-ID: Date: Sat, 20 Jan 2018 21:59: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: <1ee278a0-a855-cfb3-fd04-24034ec42a65@users.sourceforge.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:uQp+0PSx8Uk1pcQCTMUJzpTEkybO33qrF7N7JZFp1iva+9PlqH3 +HKvVKtGG/QWIgE5A6X40SlUdP1gRuuwjImItPisWR6vqTweyCHOtVhXQWpreoq7KlBCQzp +vcyJ+uhXHfGwtOWcgJSj0SMKm/e6MtDXuab7qqKi/e4ZrXZ3IZgWexxahURJbcSGjFEvUv e7SQAS4ko4UXF51Pfo9AA== X-UI-Out-Filterresults: notjunk:1;V01:K0:aCjGN5k6CyI=:Bn9i7jKLrYMTp8GFgrE6Hg mSiO2LPT60igXr72fYj43ynrn/Vi1R/CSvHUUDIebgjQxd3QP+Uxhz9UbAIOejxsrNHXGXWqU 5MAG/WgASagVVhaKqBBr8mDbotQDfmuP3zPWBCYe8cwmgQchFZGAyNbLL8HsbjhydAUXcMaoS osUiMjmcCNnliJfhN+/2jO9U0v7R3LshI6xBkzdVqV02GWgBqvlIJ4W6oJX3diBmoCYcyFEGe XcSQkRTNN4lW3amGzhNqgmCLNXRhCm6l5lrBc9EsTJV3IO3BhwmZXEx355gJRAT+Wm/VYiVkD c1KiWDWc4Q3/bmkslHDwUjj2kH8V1kIURBViYXn099PVyir3PjuBzB6SU5hC2QKVO5TNPgjWd t0eeo7FKXmQd5iS6BEmAkWXn1HyKFVz/4Voyq76dTvgy2PZrAlI0jjNzmUUf4mfZ+cmRJvJL8 g+KjCyJeekBm5R0SORSp2N7rtrUr13HIlimhdT2ricXn6ZB4MmHHEtWeU1jfVYvxlmJ8DJO/u XbHf+ooXZ8ikXZoR8l8jYAgIuEqDS0zZHiaAecLIJMAmTOqbt3XuJP7fH62E6bljEUTIm2tK4 vT2OnrzRkwNeWI/zFivjszsuZVG/O4oVWJhYvWMgnk71SQzMKS5NcvO9d3Bkc9QaRU9fANrgl Zcw3cNzKcTdCKQQ61MgLeuPXhEbROa10JxytLdXGK1bqDQiGU7JKz2Ho1W5puF4C5V7Lhm/Qi Z+3F2nhW10AGyNavijsV0w6yo+CMgh0hSZBzW9+i5/bZF1YeN0pZZVzOLl/OrsM877SrNWctT tK8fPEldisYbC362+28qy8SSQXK5qjT5P4/KIYCSPnA0Raof70= 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 21:43:54 +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/tps6507x-ts.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/tps6507x-ts.c b/drivers/input/touchscreen/tps6507x-ts.c index 75170a7439b1..5b2756ec1766 100644 --- a/drivers/input/touchscreen/tps6507x-ts.c +++ b/drivers/input/touchscreen/tps6507x-ts.c @@ -227,10 +227,8 @@ static int tps6507x_ts_probe(struct platform_device *pdev) init_data = tps_board->tps6507x_ts_init_data; tsc = devm_kzalloc(&pdev->dev, sizeof(struct tps6507x_ts), GFP_KERNEL); - if (!tsc) { - dev_err(tps6507x_dev->dev, "failed to allocate driver data\n"); + if (!tsc) return -ENOMEM; - } tsc->mfd = tps6507x_dev; tsc->dev = tps6507x_dev->dev; -- 2.15.1