summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Marsh <bmarsh94@gmail.com>2016-02-29 14:33:30 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-03-12 09:09:09 +0300
commit4374849e1e0cd6108ec7b4c1146116911adbba11 (patch)
treeb6155d59a37cdb4cf74049fccd37f8a0a8c6c881
parent3e0a66d01613ec8f40d166b0095cf9026e811ff2 (diff)
downloadlinux-4374849e1e0cd6108ec7b4c1146116911adbba11.tar.xz
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 <bmarsh94@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-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 3d0a3933d199..4a3123749a62 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);