projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d7a387
)
Staging: slicoss: changes the style of memory allocation in slicoss.c
author
Ben Marsh
<bmarsh94@gmail.com>
Tue, 1 Mar 2016 09:55:35 +0000
(10:55 +0100)
committer
Greg 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
patch
|
blob
|
history
diff --git
a/drivers/staging/slicoss/slicoss.c
b/drivers/staging/slicoss/slicoss.c
index
18dadcc
..
d75cb7d
100644
(file)
--- a/
drivers/staging/slicoss/slicoss.c
+++ b/
drivers/staging/slicoss/slicoss.c
@@
-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 slic
card), GFP_KERNEL);
+ card = kzalloc(sizeof(
*
card), GFP_KERNEL);
if (card == NULL)
return -ENOMEM;