[PATCH v3 6/7] staging: dgnc: changes arguments in sizeof

Dan Carpenter dan.carpenter at oracle.com
Tue Sep 10 22:15:51 UTC 2013


On Mon, Sep 09, 2013 at 03:01:27PM -0400, Lidza Louina wrote:
> The arguments that were passed into sizeof were
> generic. This patch changes this by putting
> the actual item that we need a size of instead.
> 
> For example:
> -   kzalloc(sizeof(struct dgnc_board), GFP_KERNEL);
> +   kzalloc(sizeof(*brd), GFP_KERNEL);
> 
> Signed-off-by: Lidza Louina <lidza.louina at gmail.com>
> ---

Looks good.

Reviewed-by: Dan Carpenter <dan.carpenter at oracle.com>

regards,
dan carpenter



More information about the devel mailing list