]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: slicoss: memory allocation style change in slicoss.c
authorBen Marsh <bmarsh94@gmail.com>
Mon, 29 Feb 2016 11:33:30 +0000 (12:33 +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 3d0a3933d199b1c8ebddd457bc22d80c99328c40..4a3123749a62b8f70ffff983128178fcfc966f4d 100644 (file)
@@ -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);