Staging: ks7010: Use sizeof structure *pointer over sizeof structure in kzalloc()
authorSandhya Bankar <bankarsandhya512@gmail.com>
Tue, 20 Sep 2016 06:25:47 +0000 (11:55 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Sep 2016 11:56:17 +0000 (13:56 +0200)
This issue was found by checkpatch.

Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks7010_sdio.c

index 25ad43d..37a4ba3 100644 (file)
@@ -955,7 +955,7 @@ static int ks7010_sdio_probe(struct sdio_func *func,
        netdev = NULL;
 
        /* initilize ks_sdio_card */
-       card = kzalloc(sizeof(struct ks_sdio_card), GFP_KERNEL);
+       card = kzalloc(sizeof(*card), GFP_KERNEL);
        if (!card)
                return -ENOMEM;