projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
600abd3
)
aoe: remove unnecessary oom message
author
Zhen Lei
<thunder.leizhen@huawei.com>
Wed, 9 Jun 2021 12:11:25 +0000
(20:11 +0800)
committer
Jens Axboe
<axboe@kernel.dk>
Wed, 9 Jun 2021 15:41:48 +0000
(09:41 -0600)
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>
drivers/block/aoe/aoechr.c
patch
|
blob
|
history
diff --git
a/drivers/block/aoe/aoechr.c
b/drivers/block/aoe/aoechr.c
index ab41be625a5316e30ae2f30d1329e657196e98e2..8eea2529da20a7ec76efade7937ad91b6e0aee7c 100644
(file)
--- a/
drivers/block/aoe/aoechr.c
+++ b/
drivers/block/aoe/aoechr.c
@@
-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;