From: Ben Marsh Date: Mon, 29 Feb 2016 11:37:34 +0000 (+0100) Subject: Staging: slicoss: changes memory allocation style in slicoss.c X-Git-Tag: Ubuntu-4.8.0-22.24~1664^2~197 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=5d7a3876cad517becf0eb9db0b05c48ccc5230dd;p=mirror_ubuntu-zesty-kernel.git Staging: slicoss: changes memory allocation style in slicoss.c This is a patch to slicoss.c that changes the memory allocation style as identified by checkpatch.pl Signed-off-by: Ben Marsh Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/slicoss/slicoss.c b/drivers/staging/slicoss/slicoss.c index 4a3123749a62..18dadccd98e1 100644 --- a/drivers/staging/slicoss/slicoss.c +++ b/drivers/staging/slicoss/slicoss.c @@ -1793,7 +1793,7 @@ static int slic_mcast_add_list(struct adapter *adapter, char *address) } /* Doesn't already exist. Allocate a structure to hold it */ - mcaddr = kmalloc(sizeof(struct mcast_address), GFP_ATOMIC); + mcaddr = kmalloc(sizeof(*mcaddr), GFP_ATOMIC); if (mcaddr == NULL) return 1;