forked from Minki/linux
Input: imx6ul_tsc - use the preferred method 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: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
3905de62b2
commit
5eab3cf3e4
@ -347,7 +347,7 @@ static int imx6ul_tsc_probe(struct platform_device *pdev)
|
||||
int tsc_irq;
|
||||
int adc_irq;
|
||||
|
||||
tsc = devm_kzalloc(&pdev->dev, sizeof(struct imx6ul_tsc), GFP_KERNEL);
|
||||
tsc = devm_kzalloc(&pdev->dev, sizeof(*tsc), GFP_KERNEL);
|
||||
if (!tsc)
|
||||
return -ENOMEM;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user