Commit 82554c2f authored by Ben Marsh's avatar Ben Marsh Committed by Greg Kroah-Hartman

Staging: slicoss: change memory allocation style in slicoss.c

This is a patch to slicoss.c to change the memory allocation style in
slicoss.c as found by checkpatch.pl
Signed-off-by: default avatarBen Marsh <bmarsh94@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e4a34826
...@@ -872,7 +872,7 @@ static int slic_upr_queue_request(struct adapter *adapter, ...@@ -872,7 +872,7 @@ static int slic_upr_queue_request(struct adapter *adapter,
struct slic_upr *upr; struct slic_upr *upr;
struct slic_upr *uprqueue; struct slic_upr *uprqueue;
upr = kmalloc(sizeof(struct slic_upr), GFP_ATOMIC); upr = kmalloc(sizeof(*upr), GFP_ATOMIC);
if (!upr) if (!upr)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment