diff options
author | Ben Marsh <bmarsh94@gmail.com> | 2016-02-29 12:37:34 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-11 22:09:09 -0800 |
commit | 5d7a3876cad517becf0eb9db0b05c48ccc5230dd (patch) | |
tree | f55f28db3b76f3730a28f25471f95eee79e030f2 /drivers/staging/slicoss | |
parent | 4374849e1e0cd6108ec7b4c1146116911adbba11 (diff) |
Staging: slicoss: changes memory allocation style in slicoss.c
This is a patch to slicoss.c that changes 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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/slicoss/slicoss.c b/drivers/staging/slicoss/slicoss.c index 4a3123749a62..18dadccd98e1 100644 --- a/drivers/staging/slicoss/slicoss.c +++ b/drivers/staging/slicoss/slicoss.c @@ -1793,7 +1793,7 @@ static int slic_mcast_add_list(struct adapter *adapter, char *address) } /* Doesn't already exist. Allocate a structure to hold it */ - mcaddr = kmalloc(sizeof(struct mcast_address), GFP_ATOMIC); + mcaddr = kmalloc(sizeof(*mcaddr), GFP_ATOMIC); if (mcaddr == NULL) return 1; |