From: Ben Marsh Date: Mon, 29 Feb 2016 11:33:30 +0000 (+0100) Subject: Staging: slicoss: memory allocation style change in slicoss.c X-Git-Tag: v4.6-rc1~103^2~198 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4374849e1e0cd6108ec7b4c1146116911adbba11;p=thirdparty%2Fkernel%2Flinux.git Staging: slicoss: memory allocation style change 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 --- diff --git a/drivers/staging/slicoss/slicoss.c b/drivers/staging/slicoss/slicoss.c index 3d0a3933d199b..4a3123749a62b 100644 --- a/drivers/staging/slicoss/slicoss.c +++ b/drivers/staging/slicoss/slicoss.c @@ -3035,7 +3035,7 @@ static u32 slic_card_locate(struct adapter *adapter) } if (!physcard) { /* no structure allocated for this physical card yet */ - physcard = kzalloc(sizeof(struct physcard), GFP_ATOMIC); + physcard = kzalloc(sizeof(*physcard), GFP_ATOMIC); if (!physcard) { if (card_hostid == SLIC_HOSTID_DEFAULT) kfree(card);