projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ff1e1e
)
caif_usb: remove redundant memory message
author
Fabian Frederick
<fabf@skynet.be>
Tue, 14 Oct 2014 17:00:55 +0000
(19:00 +0200)
committer
David S. Miller
<davem@davemloft.net>
Tue, 14 Oct 2014 20:05:45 +0000
(16:05 -0400)
Let MM subsystem display out of memory messages.
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/caif/caif_usb.c
patch
|
blob
|
blame
|
history
diff --git
a/net/caif/caif_usb.c
b/net/caif/caif_usb.c
index ba02db02290025ec7f23a794f9f4ffc217a2a038..0e487b07cf967e8c87b60a1a4fb40a69a088c2a5 100644
(file)
--- a/
net/caif/caif_usb.c
+++ b/
net/caif/caif_usb.c
@@
-87,10
+87,9
@@
static struct cflayer *cfusbl_create(int phyid, u8 ethaddr[ETH_ALEN],
{
struct cfusbl *this = kmalloc(sizeof(struct cfusbl), GFP_ATOMIC);
- if (!this) {
- pr_warn("Out of memory\n");
+ if (!this)
return NULL;
- }
+
caif_assert(offsetof(struct cfusbl, layer) == 0);
memset(this, 0, sizeof(struct cflayer));