mirror of https://gitee.com/openkylin/linux.git
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:
parent
600abd3401
commit
76cdb09b38
|
@ -140,10 +140,8 @@ bail: spin_unlock_irqrestore(&emsgs_lock, flags);
|
|||
}
|
||||
|
||||
mp = kmemdup(msg, n, GFP_ATOMIC);
|
||||
if (mp == NULL) {
|
||||
printk(KERN_ERR "aoe: allocation failure, len=%ld\n", n);
|
||||
if (!mp)
|
||||
goto bail;
|
||||
}
|
||||
|
||||
em->msg = mp;
|
||||
em->flags |= EMFL_VALID;
|
||||
|
|
Loading…
Reference in New Issue