mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
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: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
This commit is contained in:
parent
c276557de3
commit
361f7cc7f3
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue