Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751767AbdHPLTz (ORCPT ); Wed, 16 Aug 2017 07:19:55 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:36839 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751196AbdHPLTx (ORCPT ); Wed, 16 Aug 2017 07:19:53 -0400 MIME-Version: 1.0 In-Reply-To: <81cdf225-ebaa-19dc-30d8-80ec6cfab6cd@users.sourceforge.net> References: <0fec59a9-ac68-33f6-533a-adfb5fa3c380@users.sourceforge.net> <81cdf225-ebaa-19dc-30d8-80ec6cfab6cd@users.sourceforge.net> From: Dan Streetman Date: Wed, 16 Aug 2017 07:19:12 -0400 X-Google-Sender-Auth: p3LKcTScj7lHDvZoVN-4MOtEwWc Message-ID: Subject: Re: [PATCH 1/2] zpool: Delete an error message for a failed memory allocation in zpool_create_pool() To: SF Markus Elfring Cc: Linux-MM , LKML , kernel-janitors@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 962 Lines: 32 On Mon, Aug 14, 2017 at 7:15 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 14 Aug 2017 12:57:16 +0200 > > 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 Acked-by: Dan Streetman > --- > mm/zpool.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/mm/zpool.c b/mm/zpool.c > index fd3ff719c32c..fe1943f7d844 100644 > --- a/mm/zpool.c > +++ b/mm/zpool.c > @@ -172,7 +172,6 @@ struct zpool *zpool_create_pool(const char *type, const char *name, gfp_t gfp, > > zpool = kmalloc(sizeof(*zpool), gfp); > if (!zpool) { > - pr_err("couldn't create zpool - out of memory\n"); > zpool_put_driver(driver); > return NULL; > } > -- > 2.14.0 >