Commit 05db0ad8 authored by Fabio Estevam's avatar Fabio Estevam Committed by Herbert Xu
Browse files

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: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent eeb32254
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;