aoe: remove unnecessary oom message

Fixes scripts/checkpatch.pl warning:
WARNING: Possible unnecessary 'out of memory' message

Remove it can help us save a bit of memory.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Zhen Lei 2021-06-09 20:11:25 +08:00 committed by Jens Axboe
parent 600abd3401
commit 76cdb09b38
1 changed files with 1 additions and 3 deletions

View File

@ -140,10 +140,8 @@ bail: spin_unlock_irqrestore(&emsgs_lock, flags);
} }
mp = kmemdup(msg, n, GFP_ATOMIC); mp = kmemdup(msg, n, GFP_ATOMIC);
if (mp == NULL) { if (!mp)
printk(KERN_ERR "aoe: allocation failure, len=%ld\n", n);
goto bail; goto bail;
}
em->msg = mp; em->msg = mp;
em->flags |= EMFL_VALID; em->flags |= EMFL_VALID;