From 5d7a3876cad517becf0eb9db0b05c48ccc5230dd Mon Sep 17 00:00:00 2001 From: Ben Marsh Date: Mon, 29 Feb 2016 12:37:34 +0100 Subject: [PATCH] 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 --- drivers/staging/slicoss/slicoss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5