summaryrefslogtreecommitdiffstats
path: root/drivers/staging/slicoss
diff options
context:
space:
mode:
authorBen Marsh <bmarsh94@gmail.com>2016-03-01 10:55:35 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-03-11 22:09:09 -0800
commite4a34826d16ed4dd5aa93f0cafd836066a4ba243 (patch)
tree8e3b3bd313a5bf647637cdeba93874685e4821e3 /drivers/staging/slicoss
parent5d7a3876cad517becf0eb9db0b05c48ccc5230dd (diff)
downloadlinux-e4a34826d16ed4dd5aa93f0cafd836066a4ba243.tar.gz
linux-e4a34826d16ed4dd5aa93f0cafd836066a4ba243.tar.bz2
linux-e4a34826d16ed4dd5aa93f0cafd836066a4ba243.zip
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 <bmarsh94@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/slicoss')
-rw-r--r--drivers/staging/slicoss/slicoss.c2
1 files changed, 1 insertions, 1 deletions
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;