aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2016-08-31 10:45:04 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-09-22 10:12:50 -0300
commit6e7122a3c83ad468037e7f22f324feccb6252bf4 (patch)
tree0334d3033330fc889144229e79cf5fbf987924b5
parent[media] s5p-cec: fix system and runtime PM integration (diff)
downloadlinux-dev-6e7122a3c83ad468037e7f22f324feccb6252bf4.tar.xz
linux-dev-6e7122a3c83ad468037e7f22f324feccb6252bf4.zip
[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>
-rw-r--r--drivers/staging/media/s5p-cec/s5p_cec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/media/s5p-cec/s5p_cec.c b/drivers/staging/media/s5p-cec/s5p_cec.c
index 77d9887801b8..1780a08b73c9 100644
--- a/drivers/staging/media/s5p-cec/s5p_cec.c
+++ b/drivers/staging/media/s5p-cec/s5p_cec.c
@@ -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;