From: Sandhya Bankar Date: Tue, 20 Sep 2016 06:25:47 +0000 (+0530) Subject: Staging: ks7010: Use sizeof structure *pointer over sizeof structure in kzalloc() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2d738bd28c813d35f80fa7f9931f6d16dba47dbb;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Staging: ks7010: Use sizeof structure *pointer over sizeof structure in kzalloc() This issue was found by checkpatch. Signed-off-by: Sandhya Bankar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/ks7010/ks7010_sdio.c b/drivers/staging/ks7010/ks7010_sdio.c index 25ad43d34bd6..37a4ba37bf5d 100644 --- a/drivers/staging/ks7010/ks7010_sdio.c +++ b/drivers/staging/ks7010/ks7010_sdio.c @@ -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;