Skip to content

Commit

Permalink
caif_usb: remove redundant memory message
Browse files Browse the repository at this point in the history
Let MM subsystem display out of memory messages.

Signed-off-by: Fabian Frederick <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Fabian Frederick authored and davem330 committed Oct 14, 2014
1 parent 6ff1e1e commit 7970f19
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions net/caif/caif_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 7970f19

Please sign in to comment.