提交 7970f191 编写于 作者: F Fabian Frederick 提交者: David S. Miller

caif_usb: remove redundant memory message

Let MM subsystem display out of memory messages.
Signed-off-by: NFabian Frederick <fabf@skynet.be>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 6ff1e1e3
...@@ -87,10 +87,9 @@ static struct cflayer *cfusbl_create(int phyid, u8 ethaddr[ETH_ALEN], ...@@ -87,10 +87,9 @@ static struct cflayer *cfusbl_create(int phyid, u8 ethaddr[ETH_ALEN],
{ {
struct cfusbl *this = kmalloc(sizeof(struct cfusbl), GFP_ATOMIC); struct cfusbl *this = kmalloc(sizeof(struct cfusbl), GFP_ATOMIC);
if (!this) { if (!this)
pr_warn("Out of memory\n");
return NULL; return NULL;
}
caif_assert(offsetof(struct cfusbl, layer) == 0); caif_assert(offsetof(struct cfusbl, layer) == 0);
memset(this, 0, sizeof(struct cflayer)); memset(this, 0, sizeof(struct cflayer));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册