Received: by 10.223.185.116 with SMTP id b49csp548992wrg; Sat, 10 Feb 2018 13:08:20 -0800 (PST) X-Google-Smtp-Source: AH8x22652UrFtCZSYGN3Y/dnLCJpOpukZFCCZeZU9CjoCRdGrxusFu+8Bkhy9lAkJITNg2AzEc4T X-Received: by 10.98.34.139 with SMTP id p11mr7100388pfj.119.1518296900109; Sat, 10 Feb 2018 13:08:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518296900; cv=none; d=google.com; s=arc-20160816; b=vuXYmj0IZ059g8wYfYbyVwAdLHJ9MUlyKM/mCv1LKM3k5U0GDf7cdiAQp2+9VaUagf WpdVTpkftiux3jCAFECWAM/S7VhSqEfGCEmXfZNgLyENVY+KC1aSa/fHAC7KZNsUGnnY A6H2D+3wfrqnx+QDE0Yg+QnpCLQuEcHMaIIVW0VOumW/nUxVRiHmbj8huhQACpBc4Da/ IlHGp67ZipRXO2e6E5eU7BCscUFG1JzdJHY8JgZ1kY55tSTodr+tGjmZ6MD04mhiMpIu uUbaCZggsl6qN3/CqNZbfbTd6GYEQt54XlFJePZUZmG+b4zRo9DUpREOzgiePDFE8Nq0 MXdQ== 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=/22cDdrXPfzfDvCLKLdiMIwSrgiC+IqRG3QmKwyRDCE=; b=AZTBcHHGZt90SDeqkrsyGMcTZGSZgiMuZgk4DgTTfgJNwCKcPEW+FYwEwwbjdwcHLQ 9IX9NLjQKEScF2URc8V2f0aYyn8wtJIDAkhsPmBwg1H2vO3s7x6HtH0jETNoatXkI+wN YUeVIXd542403Om4MQVb18EoURZRmqaoKoF0dL/+dvUTA3yckjkfWZ5lFTRjikTNw62u Kj2Lw8gskU02OEVSritVA7gYtyhPmH6/1+v0Z1BOg6dxzOJLej9PXl4+4fPczdJzzKUY jicoPCj4xkP3UYys/GzZYnn5cA6M0LIP0TqcVxxwZDVKNEQapcoDWwsvKTL2Ll01171E h3GA== 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 x9-v6si759830plw.160.2018.02.10.13.08.06; Sat, 10 Feb 2018 13:08:20 -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 S1752492AbeBJVH1 (ORCPT + 99 others); Sat, 10 Feb 2018 16:07:27 -0500 Received: from mout.web.de ([212.227.15.14]:33739 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751145AbeBJVHZ (ORCPT ); Sat, 10 Feb 2018 16:07:25 -0500 Received: from [192.168.1.2] ([78.53.150.195]) by smtp.web.de (mrweb001 [213.165.67.108]) with ESMTPSA (Nemesis) id 0LjaR6-1fHkGE1LPk-00baz8; Sat, 10 Feb 2018 22:07:18 +0100 Subject: [PATCH 1/2] gpio: omap: Delete an error message for a failed memory allocation in omap_gpio_probe() From: SF Markus Elfring To: linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, Grygorii Strashko , Kevin Hilman , Linus Walleij , Santosh Shilimkar Cc: LKML , kernel-janitors@vger.kernel.org References: <8ec31664-badc-5454-b759-ae9132833589@users.sourceforge.net> Message-ID: <86570340-688b-34ec-2d99-ff728ccbe4a9@users.sourceforge.net> Date: Sat, 10 Feb 2018 22:07:17 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <8ec31664-badc-5454-b759-ae9132833589@users.sourceforge.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:x912BX3jlKZbXPyyaQ3EU1+Ve5d4kFxS1YDzp8N/lgFfWMQNHhM qBdeGtliz9OYAsMEB0Curlk/YsDgFun3G+3lKaBhcAYGCk6H4HsxrPTjdg+wOEJLTQ3LFZy IjlPL73NMc6GClBHHY3iMu2p7bzva6IksQWpzxgTHvtAQlApl2ue6F2tXmvxdXeUppvUP6p pIaflihpFKz4jDDYYNeRg== X-UI-Out-Filterresults: notjunk:1;V01:K0:PHkCKHu3ZZc=:IcuwKM24hjbb2Sbh1+MTUn TW5zR3i5q8MtV1cl0Od5/EayGZRml7fc38JvyVA51T+mrMliMYh9oVrREsTkpj9f/gVR0Leph Bmgol1zrRzDHfPcsqC1hl1aL51qxl+oBK8SDbsT9YCO/mE4cson2Rwcnxii+tUNABUFratge2 cNpArIZFfzHW6L5F1yxMGQ8pjUHAuQh9H8YdmM/npNGfJkN8tRaUADsuVxkjo6J2qVhCEnM+v TpZaf4WrYpXsxppTOyPpAJwuLL+bhdkd74X3lfILJDZlBmwHGwSSNKmLCh4uKbyGgS9dh68LN r5tNnMUNqolGMQzxYHMXd1dOZPMljaoSaTGoCYtPxoQNxe+RQR0ONSENAc4f8cUqVgy7A04R/ A/XnMsYN8eXoPxINbP9n1bBkoCI5SadybOuoCQwYyGzv7LmRwDTQ65UB0JlZ9RgMqRqjExMWn yBZco3OLOc7btp15lokVAp7BtwrHKwZN5PLXUb05CqY/JIxc+RK/ft9Ig8csZ/xDq9NPCYdKt w6slzdMOxe3k4zBecTefoJm80Gg/nSAg/MpCKGhFxMBfS8MvTWGUNcVjkUKhlXbzBIQxyI8y9 hgV46pTWgZzKxCDNP0Gg8z6hw5iI2wO3UuNt5TFDmaQwgqMnA4fiTR+9aUkjSg130dd3eGHb1 gf2D9Dg/7h0blZNXcUFMxGBBwccALDt1UYTpq9IVlyuYVwaMEE9na28IAiwOkcvOktOs/eBps l4hudl4M/RjrJFH4a4Nchd9mcoCTg4aXTHGKoghG2kB5f8GTjNoXOctyo+OT5yOAg46yMyf/0 U541Lcj4Zkky/J9SCUt0+drA3qKRjO+5z6UjLFh4pwWicyAEe8= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring Date: Sat, 10 Feb 2018 21:46:30 +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/gpio/gpio-omap.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index ab5035b96886..4db6f13fa133 100644 --- a/drivers/gpio/gpio-omap.c +++ b/drivers/gpio/gpio-omap.c @@ -1158,10 +1158,8 @@ static int omap_gpio_probe(struct platform_device *pdev) return -EINVAL; bank = devm_kzalloc(dev, sizeof(struct gpio_bank), GFP_KERNEL); - if (!bank) { - dev_err(dev, "Memory alloc failed\n"); + if (!bank) return -ENOMEM; - } irqc = devm_kzalloc(dev, sizeof(*irqc), GFP_KERNEL); if (!irqc) -- 2.16.1