From: Fabian Frederick Date: Tue, 14 Oct 2014 17:00:55 +0000 (+0200) Subject: caif_usb: remove redundant memory message X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=7970f1918ff685e64063b54474a9c1ac087aee4d;p=deliverable%2Flinux.git caif_usb: remove redundant memory message Let MM subsystem display out of memory messages. Signed-off-by: Fabian Frederick Signed-off-by: David S. Miller --- 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], { 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));