mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 06:34:12 +08:00
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>
This commit is contained in:
parent
6ff1e1e3c8
commit
7970f1918f
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user