Received: by 10.223.176.46 with SMTP id f43csp2093321wra; Sun, 21 Jan 2018 11:06:44 -0800 (PST) X-Google-Smtp-Source: AH8x224Db/LPNR+7JF1OUHFRGpKydrl2RhXR8u188sneItgi2Ho6KXk28+wWOD7gkPxgeBMPt5sD X-Received: by 10.99.181.72 with SMTP id u8mr557186pgo.205.1516561604632; Sun, 21 Jan 2018 11:06:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516561604; cv=none; d=google.com; s=arc-20160816; b=VaBSVg7UYdJUp90zA/u5A99Y2bh6YmZLTwrH6o6oVK4ZRVLHDl0+PLtbFib+AaN0Sp bByeixQRRm60uOYJ23An5saapsYzzvJAlOXCil07c3T3dhyJnEwpMFmfplHgCyAVtz7e eprKZm8cfV56ucIWaMVduZQ5XV90zAItTeB/+Geyii68VQeak500c1Dd8YMvzURDPjM2 NDdD8g/yhH5dgfAPYcZbPtyYUJWOpsFZDL5bYSLpvfnMBdz4aqf1mawCjNAO1SoNA5QW uOQFlSBsae/2ynn4iL+tYC2qD63Zc0cOR70MsALh1RU21xzHxdc6rboigkfdku5G4D8g u27Q== 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:subject :from:cc:to:arc-authentication-results; bh=5DNHnhuvUq9jFwOI7jKrt+U2Cpsj47VXA7VoPMT7bjk=; b=H+9/ISUsiG+91IHqKowAqdxDF6Bc8Ok3UEHDrCxXFtMrWSYJrq4/E3PzTcEKOrwh/Y H4qM8lCFxTdEGSYlIu+loRwaFGb/2Dr99r5nToZj1Q2DcYrUJuVlnBHZKrN9ErTPBL7F PYCUnYZVEYyi5nrUt2Vl9AzdUdAM8UKKB6SLWGtS0c6RMOWe1kNHdDqpBTd1UkKYucR9 Vk7z6C6S90y+myf73RSxdyA7rk00Rw9GovgP3mRg3ns4CmDTC8WT6/BnWStJlSexHFxj HnDoQX/4oacRaqcY5WaN6BrlLsFZLhlZopdAhEAzAwN0uO1wFSolJRC9IsdfGp85bl7y dvEQ== 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 o5si13971746pfj.368.2018.01.21.11.06.30; Sun, 21 Jan 2018 11:06:44 -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 S1751372AbeAUTGH (ORCPT + 99 others); Sun, 21 Jan 2018 14:06:07 -0500 Received: from mout.web.de ([212.227.17.11]:59969 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751004AbeAUTGF (ORCPT ); Sun, 21 Jan 2018 14:06:05 -0500 Received: from [192.168.1.3] ([77.181.34.161]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0Lz376-1eqJR43wwK-014Fvm; Sun, 21 Jan 2018 20:05:15 +0100 To: linux-input@vger.kernel.org, Daniel Mack , Dmitry Torokhov , =?UTF-8?B?R8O8bnRlciBSw7Zjaw==?= Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] Input: eeti_ts: Delete an error message for a failed memory allocation in eeti_ts_probe() Message-ID: Date: Sun, 21 Jan 2018 20:05:14 +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:NwsVBZwt6DOi2IuKSewCJfuvbfHx2WHuh/bzocoj0DdWf684Vtn 50+GxjzOzO0Mg8yckxVaUYieHb4Z2IFN88a6LHCx/ee6okdw8YurMFEpse28KZ92NlKzdU1 QpjyKa84VW3kl09Svt5hC60vIlU3vWL0R1ubBHtUTHs7BytPhVizcqbD/ezxJdBvZwfvagQ WX7lk4MrSYhi8Lc9mMfaA== X-UI-Out-Filterresults: notjunk:1;V01:K0:VBT48x73Fjc=:EkFaQ1d/aNYSF+JGGz5M7k /pRK8aaYI1P4o9EXCr0byOf9dEWQ0SHDjua/A9Z6MC1essccZnM/xTJ9hC/97ZpRhlF0pwU7j rhWfhAUrZyybPnGT1wGwDhvGLco5H5kFOthdR+3jCfFB7cKMUluluZgOnlcJFTCm+iEOY8RPa VpUWcbKtGM733Y4moqWOOR9JpA2JhFivBuHJUAYWUmDvG7VE/v8hbvPFVpTeji+CNZBUKwhgF Zqt29cH9DRJjZ4NcR3xM5r4tmY2LDHZL+znTXJ0i1clV/2H75tl9fxnVrnWJJ9yMrD0TEx+4J mof8UOpOJmS2B61D40Ckf+v2XITthvE4HDoijK5EZd4SuH0frgnKRt4h7tCgNbEoey3UbQdwZ cQoVMKfqx8fjb5iuwNtAht+PFWCG0Teqwi8B2bITjxTvOVuL89nYHAbYr4BJC2R77lVdAIn94 jnJnoeqlDp5a2i937N+dVfWXjeraUF3aEFtpUR6tptOx6jeBZlZia5bVV/UA45QwBjuDFYe4u 1UV1dPHQF/Lvqrx9Yx2CCz8KEzmU3IzcE/LWYGJWiZY6mdNE3VkeMpwdX88XXXd5RLOR97OJY 9w3nbygaZoUkdNamV9auZHpfApniv90XqIzA05sKDkhc79K6uFbEs9q5ZeSzygPtlubPRXB6M Mw6IASukQXWU8iITElI2GQtZAH47uN6halIPsis40DPyrckStrh5I4H6TNUhuwhM8nVVjyT1Y rz03dAT8VDWdo4VsclIqcd5y7Eim0uvT0E2eoOlhik+S9S5uD0DlSNZk4j6orBs6Cc1gBQVRK Tx6pqQyZ0/vsUPwe+B9gXmxi87xBWgD3PvAO2dHZQ0o+4m5OfE= 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:00: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/eeti_ts.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/eeti_ts.c b/drivers/input/touchscreen/eeti_ts.c index 2facad75eb6d..337f171e0f86 100644 --- a/drivers/input/touchscreen/eeti_ts.c +++ b/drivers/input/touchscreen/eeti_ts.c @@ -161,10 +161,8 @@ static int eeti_ts_probe(struct i2c_client *client, */ eeti = devm_kzalloc(dev, sizeof(*eeti), GFP_KERNEL); - if (!eeti) { - dev_err(dev, "failed to allocate driver data\n"); + if (!eeti) return -ENOMEM; - } input = devm_input_allocate_device(dev); if (!input) { -- 2.16.0