]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: slicoss: change memory allocation style in slicoss.c
authorBen Marsh <bmarsh94@gmail.com>
Tue, 1 Mar 2016 10:06:13 +0000 (11:06 +0100)
committerGreg 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

index d75cb7d8dc6147103a8bebfbdc64afaecd213369..11c9468ae552ef68aeabbfd9734f9d1766867ec4 100644 (file)
@@ -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;