Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751110AbeAPVKK (ORCPT + 1 other); Tue, 16 Jan 2018 16:10:10 -0500 Received: from mout.web.de ([212.227.17.12]:64039 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750796AbeAPVKI (ORCPT ); Tue, 16 Jan 2018 16:10:08 -0500 To: linux-block@vger.kernel.org, Matias Bjorling Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] lightnvm/pblk-gc: Delete an error message for a failed memory allocation in pblk_gc_line_prepare_ws() Message-ID: <0ef6e852-9c76-ce74-6f21-c0398722c9e5@users.sourceforge.net> Date: Tue, 16 Jan 2018 22:10:04 +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:uDPrfWRBlpRs5L6+At2tlpylggWREpf9OGvZEgLVna7j7AqNwaJ vYhcwiw/pSBjBfJtGIKJZNypEsNmBjaC5FXeoYPfZuUCIP7hBT+Q0vvCqAcPW7+BNx02DOJ TA/pB/Of2he3NsLnXxR/ZPndkxR8oirn9l1hbzAZEyp9imv2kt9hrPnoLszLoXUPTPQsLLz YxmrS6sgQ98deiGcn+4Iw== X-UI-Out-Filterresults: notjunk:1;V01:K0:FPiI/blKHv4=:ROs0u5jQOCnCKVXOBK/wqZ msz3/XsdA5GTlI6evIRfbwzEotrRDGSIQAszax3K9hE2x6B+L3TuRKpG5UAyFiRh7jYoq+A0P FWYn05XcIdrW/1RyPy4fjZtZzzhd5Z9NE0znH3BVZx7LIBlhaD1nBMGXCD2x30d6SvA73CYAK tvD4lPMijab+fJ3Dk2jvgSsyoctAKgYJPVSMyXQVfQ/v4OHSYUtSagsSpsJhI3B+W+7AgnPEl jAUfsUKbp93UEP8dUS5r8Nk2gV4SPHz7FDZ58uTBe3qeAWIQ00NI0UwGk4XmlkMJDjeFQBTot wY4Gzy1uJfCGZMwNmVGLdO/B4jRLqdcP+wOIgQqlTqq1MJBuUCMHHDxAOReu9AmRF3qmrNBU2 MLVwM3r0LXehMR55w248rJRqIXwnAVia2xL2Ag2oBKo2eNWX0y7/zJ33bYnyw/lmg0XX2Kj1q y6pWlb7XTUmErwNNQVdExbbvEDubf6tYjtpV6A65thX1smkSTFz4zhj8MXO/uG+T+qlqpK3I6 Yi82hm/thzbr/7qNDDi+udjEiAmLiP1I3NeBUdyAx2yxZtXDm79ooTM9CM6rHvu0z3a1QKMgc jyn3K5Z4mUfywbMC/DI7sVFJK78II0gSJgT2/1BgeQDrFucGbxT7qb5lIfEf41hEUsFXRStyw A3bUCuvrwAhesTTcMno5ShSv0AXin3C0CsmrVnRbUYo4ztadR9HXXXFqD18y3FO8/4Z1T20GU tvGBUKWHP+zpQ8blC+AvK5ziyU4MLm5w4nLdA8EXoCwDl1aOBVrYCPJSD/G9h9ddHN2Mi7s40 0P/S6vZoV3GMfznJNrDwG5ssf+LW3UEN+vUx4ghMld0yv9AfQA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Markus Elfring Date: Tue, 16 Jan 2018 22:00:15 +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/lightnvm/pblk-gc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/lightnvm/pblk-gc.c b/drivers/lightnvm/pblk-gc.c index 9c8e114c8a54..54cdb4360366 100644 --- a/drivers/lightnvm/pblk-gc.c +++ b/drivers/lightnvm/pblk-gc.c @@ -147,10 +147,8 @@ static void pblk_gc_line_prepare_ws(struct work_struct *work) int ret; invalid_bitmap = kmalloc(lm->sec_bitmap_len, GFP_KERNEL); - if (!invalid_bitmap) { - pr_err("pblk: could not allocate GC invalid bitmap\n"); + if (!invalid_bitmap) goto fail_free_ws; - } emeta_buf = pblk_malloc(lm->emeta_len[0], l_mg->emeta_alloc_type, GFP_KERNEL); -- 2.15.1