aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2016-08-31 10:45:04 -0300
committerMauro Carvalho Chehab <[email protected]>2016-09-22 10:12:50 -0300
commit6e7122a3c83ad468037e7f22f324feccb6252bf4 (patch)
tree0334d3033330fc889144229e79cf5fbf987924b5
parent57b978ada073106d8fc12614f504cb92366a7ce1 (diff)
[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 <[email protected]> Signed-off-by: Sylwester Nawrocki <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
-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;