Received: by 10.223.185.116 with SMTP id b49csp3983507wrg; Tue, 13 Feb 2018 10:46:59 -0800 (PST) X-Google-Smtp-Source: AH8x2263Qj2+WvGBKI1WnKuQUJBGnzllmfizFLr9F3rXAW674myzfLVixJXTcfDkIONxrg1NSO2c X-Received: by 10.101.70.69 with SMTP id k5mr1759091pgr.61.1518547619291; Tue, 13 Feb 2018 10:46:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518547619; cv=none; d=google.com; s=arc-20160816; b=0uu3CMpuTiHb+ACYMBlGPGzfFwht0jpMF6fu6Y0m6DkntgQaHmk1viuea3pzRVN/no AnkK22E0WoB2leiF6y8CJqLL6LL+RoP0YXVAT5F7a3XnH36TZ5WZ7ntylA3sOrzU9wJb 16NVeWp8Cr9pLlf2aivxss1O2zks1cjB88WlbCFiC5pCELPbIGoUfaOP1cBUF1+AzXeK Gqt+wFd7A6+epdm/joIVj+NSkCpn9z3xbaTs+OIvjQ6HiBSucTBiruH2zBAYEgF2jtTI RM+xQ3bFffzq8r/uEhtSd8J9ue8kinEr/I41JYn/lb3d02exYBVHsaSl1D5L3PXW88X4 2Vrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=t+sPc8qlRfQm/B/U8lwZ4u7BWxWDgmooWWat4kUwXDc=; b=0OJ5/wzOmA5xwY3ClGZmsL1pW7Q7M4IeyORa3i3O1Exxj3CGoKjP0/A6hGSGOm1/D7 BNHi3jFENk0XbmFS2UgyG5AFiD38LJtCC4741KXTXcilQsuK+wgoXpadCV+g+eO59uCH 9Dji9WuYlPmIHFaOWKxvBnjz2JWbtPVpTwxe7Xva4Bh4Hkh7BsomiigXoPGXgiIg3LRt AD1GzoRzmY+HoxIs1VjokWkHxx28ESJ8q1VrIBYYlr1ofXUAMtI3bpEjNt8CTgwCbwQV 4+JhufnsKGpfehUvWPpJ9TkYShGwnajlO2M4sFabCYooy/upOtCyYfom1Kj4kjNQeUZT mz6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VE4ERKvu; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i9si102649pgq.0.2018.02.13.10.46.43; Tue, 13 Feb 2018 10:46:59 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VE4ERKvu; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965517AbeBMSps (ORCPT + 99 others); Tue, 13 Feb 2018 13:45:48 -0500 Received: from mail-qt0-f195.google.com ([209.85.216.195]:34020 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965415AbeBMSpq (ORCPT ); Tue, 13 Feb 2018 13:45:46 -0500 Received: by mail-qt0-f195.google.com with SMTP id d14so4773099qtg.1; Tue, 13 Feb 2018 10:45:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=t+sPc8qlRfQm/B/U8lwZ4u7BWxWDgmooWWat4kUwXDc=; b=VE4ERKvuPzjPTMWGmcJR5qEal7K63+K7KhVVB4uRpG7kcGeY2JgAA4xArOSjaFBw+l xu0XVMNC4OGjA9C31Uxx/4Q12X+Jn942iVK0UM6Dx/40kKxZfzAOgw6k1ydh1W4m2R1a npN2WvXrV6B82MpuA5RN2SpmBB5OWrOx3DhnLnIvP29aW3TMyreWEyEqurXJiVV7qrGs UQw6TGb+Lb7qv0Hi3axMHewDwwfsuESNAtAFzBOcW9y859FI82tfb47xwrY4dkXRStiE UvGxlqdgraKd6tBVRLtMdUaIDp1e4CcRfXFpAFLtMsQpUdRCIgHYXxPoLVGBNhYGVrBR jPPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=t+sPc8qlRfQm/B/U8lwZ4u7BWxWDgmooWWat4kUwXDc=; b=pnSEnekkd9swP6aGj2/HFaJf9pZ00lUJxWWOR+t+LHAPO2DTzAT9AtlvHiOjnH7ExY rWaO8VTydUxvyXXrMG5iVr9EX476d138Hst8px3IoUkKKJ9BfVPWqEA4DQMV8mg8sjiT FDIbfWQ6xFP7Tr0kjJcg2Eo7zyeR0AkwQO8IfhjYPswybnVjLYxlsmprUDN7l7CSWf7w oANKDKUC0pF2EN2kEnqit/EkqlEBuPqYguGBCWahIugAPA8HkiDgbTrU9K7ez4SnxO3t 9c1uu0PPVtiw7SnNaq528cZVnGlhWmEFhAQU5zFXrXmvxVcusdCIiXNyEA7forTbfy6k 2ngg== X-Gm-Message-State: APf1xPD0/iebGSVlUagc/C4nfwzHrNXUNp9c0UfLfG19Skb4C6rkEhwa rbmgU4bhEtsdxQTld6pjbNg8FHHVBlcdher40Bo= X-Received: by 10.200.9.86 with SMTP id z22mr3431958qth.87.1518547545764; Tue, 13 Feb 2018 10:45:45 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.195.82 with HTTP; Tue, 13 Feb 2018 10:45:45 -0800 (PST) In-Reply-To: <0ea6dba4-0c52-4c9c-ae7e-d80c2f3d50f3@users.sourceforge.net> References: <0ea6dba4-0c52-4c9c-ae7e-d80c2f3d50f3@users.sourceforge.net> From: Andy Shevchenko Date: Tue, 13 Feb 2018 20:45:45 +0200 Message-ID: Subject: Re: [PATCH] gpio-intel-mid: Delete an error message for a failed memory allocation in intel_gpio_probe() To: SF Markus Elfring Cc: "open list:GPIO SUBSYSTEM" , David Cohen , Linus Walleij , LKML , kernel-janitors@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 11, 2018 at 11:04 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 11 Feb 2018 21:56:42 +0100 > > Omit an extra message for a memory allocation failure in this function. > > This issue was detected by using the Coccinelle software. > Linus, same comment as previously. If you are OK with the change, take my Reviewed-by: Andy Shevchenko > Signed-off-by: Markus Elfring > --- > drivers/gpio/gpio-intel-mid.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/gpio/gpio-intel-mid.c b/drivers/gpio/gpio-intel-mid.c > index 629575ea46a0..028d64c2cb1e 100644 > --- a/drivers/gpio/gpio-intel-mid.c > +++ b/drivers/gpio/gpio-intel-mid.c > @@ -361,10 +361,8 @@ static int intel_gpio_probe(struct pci_dev *pdev, > pcim_iounmap_regions(pdev, 1 << 1); > > priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); > - if (!priv) { > - dev_err(&pdev->dev, "can't allocate chip data\n"); > + if (!priv) > return -ENOMEM; > - } > > priv->reg_base = pcim_iomap_table(pdev)[0]; > priv->chip.label = dev_name(&pdev->dev); > -- > 2.16.1 > -- With Best Regards, Andy Shevchenko