From e4a34826d16ed4dd5aa93f0cafd836066a4ba243 Mon Sep 17 00:00:00 2001 From: Ben Marsh Date: Tue, 1 Mar 2016 10:55:35 +0100 Subject: [PATCH] Staging: slicoss: changes the style of memory allocation in slicoss.c This is a patch to slicoss.c to change 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 18dadccd98e1..d75cb7d8dc61 100644 --- a/drivers/staging/slicoss/slicoss.c +++ b/drivers/staging/slicoss/slicoss.c @@ -2984,7 +2984,7 @@ static u32 slic_card_locate(struct adapter *adapter) /* Initialize a new card structure if need be */ if (card_hostid == SLIC_HOSTID_DEFAULT) { - card = kzalloc(sizeof(struct sliccard), GFP_KERNEL); + card = kzalloc(sizeof(*card), GFP_KERNEL); if (card == NULL) return -ENOMEM; -- 2.39.5