mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-28 04:17:47 +00:00
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: Ben Marsh <bmarsh94@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e4a34826d1
commit
82554c2ffb
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user