]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
Staging: slicoss: changes the style of memory allocation in slicoss.c
authorBen Marsh <bmarsh94@gmail.com>
Tue, 1 Mar 2016 09:55:35 +0000 (10:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Mar 2016 06:09:09 +0000 (22:09 -0800)
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>
drivers/staging/slicoss/slicoss.c

index 18dadccd98e1772cf3f3c0706cc9e51da1b579ac..d75cb7d8dc6147103a8bebfbdc64afaecd213369 100644 (file)
@@ -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;