mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-01 11:21:51 +00:00
Staging: ks7010: Use sizeof structure *pointer over sizeof structure in kzalloc()
This issue was found by checkpatch. Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0525a57b18
commit
2d738bd28c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue