[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: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
57b978ada0
commit
6e7122a3c8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue