diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-10-14 13:00:55 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-14 16:05:45 -0400 |
commit | 7970f1918ff685e64063b54474a9c1ac087aee4d (patch) | |
tree | 5293bf0778c28577f9dbd00a5b8f21450bbd7cb4 /net | |
parent | 6ff1e1e3c81426515e1782f2f13b7237211a43df (diff) |
caif_usb: remove redundant memory message
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/caif/caif_usb.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/caif/caif_usb.c b/net/caif/caif_usb.c index ba02db022900..0e487b07cf96 100644 --- 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], | |||
87 | { | 87 | { |
88 | struct cfusbl *this = kmalloc(sizeof(struct cfusbl), GFP_ATOMIC); | 88 | struct cfusbl *this = kmalloc(sizeof(struct cfusbl), GFP_ATOMIC); |
89 | 89 | ||
90 | if (!this) { | 90 | if (!this) |
91 | pr_warn("Out of memory\n"); | ||
92 | return NULL; | 91 | return NULL; |
93 | } | 92 | |
94 | caif_assert(offsetof(struct cfusbl, layer) == 0); | 93 | caif_assert(offsetof(struct cfusbl, layer) == 0); |
95 | 94 | ||
96 | memset(this, 0, sizeof(struct cflayer)); | 95 | memset(this, 0, sizeof(struct cflayer)); |