Commit 5da84cf6 authored by Markus Elfring's avatar Markus Elfring Committed by Jens Axboe

lightnvm/pblk-gc: Delete an error message for a failed memory allocation in...

lightnvm/pblk-gc: Delete an error message for a failed memory allocation in pblk_gc_line_prepare_ws()

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.
Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Reviewed-by: default avatarJavier González <javier@cnexlabs.com>
Signed-off-by: default avatarMatias Bjørling <mb@lightnvm.io>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent f23f5bec
...@@ -147,10 +147,8 @@ static void pblk_gc_line_prepare_ws(struct work_struct *work) ...@@ -147,10 +147,8 @@ static void pblk_gc_line_prepare_ws(struct work_struct *work)
int ret; int ret;
invalid_bitmap = kmalloc(lm->sec_bitmap_len, GFP_KERNEL); invalid_bitmap = kmalloc(lm->sec_bitmap_len, GFP_KERNEL);
if (!invalid_bitmap) { if (!invalid_bitmap)
pr_err("pblk: could not allocate GC invalid bitmap\n");
goto fail_free_ws; goto fail_free_ws;
}
emeta_buf = pblk_malloc(lm->emeta_len[0], l_mg->emeta_alloc_type, emeta_buf = pblk_malloc(lm->emeta_len[0], l_mg->emeta_alloc_type,
GFP_KERNEL); GFP_KERNEL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment