diff options
author | Ben Marsh <bmarsh94@gmail.com> | 2016-03-01 11:06:13 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-11 22:09:09 -0800 |
commit | 82554c2ffbb475609d381f0e258e247a96aad5b9 (patch) | |
tree | 0a087461c4b69a748be9edbd0074d1639c72682a /drivers/staging/slicoss | |
parent | e4a34826d16ed4dd5aa93f0cafd836066a4ba243 (diff) | |
download | linux-82554c2ffbb475609d381f0e258e247a96aad5b9.tar.gz linux-82554c2ffbb475609d381f0e258e247a96aad5b9.tar.bz2 linux-82554c2ffbb475609d381f0e258e247a96aad5b9.zip |
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>
Diffstat (limited to 'drivers/staging/slicoss')
-rw-r--r-- | drivers/staging/slicoss/slicoss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/slicoss/slicoss.c b/drivers/staging/slicoss/slicoss.c index d75cb7d8dc61..11c9468ae552 100644 --- 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; |