From mboxrd@z Thu Jan 1 00:00:00 1970 From: SF Markus Elfring Date: Mon, 14 Aug 2017 11:15:34 +0000 Subject: [PATCH 1/2] zpool: Delete an error message for a failed memory allocation in zpool_create_pool() Message-Id: <81cdf225-ebaa-19dc-30d8-80ec6cfab6cd@users.sourceforge.net> List-Id: References: <0fec59a9-ac68-33f6-533a-adfb5fa3c380@users.sourceforge.net> In-Reply-To: <0fec59a9-ac68-33f6-533a-adfb5fa3c380@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-mm@kvack.org, Dan Streetman Cc: LKML , kernel-janitors@vger.kernel.org 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 --- 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