Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 361f7cc7 authored by Markus Elfring's avatar Markus Elfring Committed by Robert Jarzmik
Browse files

ARM: pxa: Improve a size determination in pxa3xx_u2d_probe()



Replace the specification of a data structure by a pointer dereference
as the parameter for the operator "sizeof" to make the corresponding size
determination a bit safer according to the Linux coding style convention.

Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarRobert Jarzmik <robert.jarzmik@free.fr>
parent c276557d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -286,7 +286,7 @@ static int pxa3xx_u2d_probe(struct platform_device *pdev)
	struct resource *r;
	int err;

	u2d = kzalloc(sizeof(struct pxa3xx_u2d_ulpi), GFP_KERNEL);
	u2d = kzalloc(sizeof(*u2d), GFP_KERNEL);
	if (!u2d) {
		dev_err(&pdev->dev, "failed to allocate memory\n");
		return -ENOMEM;