Commit e4a34826 authored by Ben Marsh's avatar Ben Marsh Committed by Greg Kroah-Hartman

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: default avatarBen Marsh <bmarsh94@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5d7a3876
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment