From: Ben Marsh Date: Tue, 1 Mar 2016 10:06:13 +0000 (+0100) Subject: Staging: slicoss: change memory allocation style in slicoss.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=82554c2ffbb475609d381f0e258e247a96aad5b9;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Greg Kroah-Hartman --- 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;