hwrng: mxc-rnga - Use the preferred format for kzalloc

According to Documentation/CodingStyle:

"The preferred form for passing a size of a struct is the following:

	p = kmalloc(sizeof(*p), ...);"

,so do as suggested.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Fabio Estevam 2015-09-12 20:19:53 -03:00 committed by Herbert Xu
parent eeb3225409
commit 05db0ad865
1 changed files with 1 additions and 2 deletions

View File

@ -145,8 +145,7 @@ static int __init mxc_rnga_probe(struct platform_device *pdev)
struct resource *res;
struct mxc_rng *mxc_rng;
mxc_rng = devm_kzalloc(&pdev->dev, sizeof(struct mxc_rng),
GFP_KERNEL);
mxc_rng = devm_kzalloc(&pdev->dev, sizeof(*mxc_rng), GFP_KERNEL);
if (!mxc_rng)
return -ENOMEM;