Re: [PATCH 1/1] staging: ozwpan: Remove allocation from delaration line

2015-02-10 Thread Dan Carpenter
On Tue, Feb 10, 2015 at 09:55:03AM +0100, Quentin Lambert wrote: > static struct oz_endpoint *oz_ep_alloc(int buffer_size, gfp_t mem_flags) > { > - struct oz_endpoint *ep = > - kzalloc(sizeof(struct oz_endpoint)+buffer_size, mem_flags); > + struct oz_endpoint *ep; > + > +

[PATCH 1/1] staging: ozwpan: Remove allocation from delaration line

2015-02-10 Thread Quentin Lambert
This patch removes allocation from declaration line because people are known to gloss over declarations. Signed-off-by: Quentin Lambert --- This patch was inspired by http://www.spinics.net/lists/linux-usb/msg44389.html and https://lkml.org/lkml/2015/2/7/47 but I am not sure the argument is val