Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7970f191 authored by Fabian Frederick's avatar Fabian Frederick Committed by David S. Miller
Browse files

caif_usb: remove redundant memory message



Let MM subsystem display out of memory messages.

Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6ff1e1e3
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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));