projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4a3482
)
Staging: slicoss: change memory allocation style in slicoss.c
author
Ben Marsh
<bmarsh94@gmail.com>
Tue, 1 Mar 2016 10:06:13 +0000
(11:06 +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 in
slicoss.c as found 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 d75cb7d8dc6147103a8bebfbdc64afaecd213369..11c9468ae552ef68aeabbfd9734f9d1766867ec4 100644
(file)
--- a/
drivers/staging/slicoss/slicoss.c
+++ b/
drivers/staging/slicoss/slicoss.c
@@
-872,7
+872,7
@@
static int slic_upr_queue_request(struct adapter *adapter,
struct slic_upr *upr;
struct slic_upr *uprqueue;
- upr = kmalloc(sizeof(
struct slic_
upr), GFP_ATOMIC);
+ upr = kmalloc(sizeof(
*
upr), GFP_ATOMIC);
if (!upr)
return -ENOMEM;