Commit 6e7122a3 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Mauro Carvalho Chehab

[media] s5p-cec: Fix memory allocation failure check

It is likely that checking the result of the memory allocation just above
is expected here.
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 57b978ad
......@@ -173,7 +173,7 @@ static int s5p_cec_probe(struct platform_device *pdev)
int ret;
cec = devm_kzalloc(&pdev->dev, sizeof(*cec), GFP_KERNEL);
if (!dev)
if (!cec)
return -ENOMEM;
cec->dev = dev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment