projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e0a66d
)
Staging: slicoss: memory allocation style change in slicoss.c
author
Ben Marsh
<bmarsh94@gmail.com>
Mon, 29 Feb 2016 11:33:30 +0000
(12:33 +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
3d0a393
..
4a31237
100644
(file)
--- a/
drivers/staging/slicoss/slicoss.c
+++ b/
drivers/staging/slicoss/slicoss.c
@@
-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);