summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorThomas Meyer <thomas@m3y3r.de>2013-06-01 06:56:26 -0300
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:48:40 +0900
commitd32abd615a1456fb74aa0f8c4df5a44fccda5c2a (patch)
tree5e66d40b769f727d80a2025ac9d8ebd8d78073cf /drivers
parent0f7681f23b171fe46c550b987e0d45e6062024af (diff)
downloadlinux-3.10-d32abd615a1456fb74aa0f8c4df5a44fccda5c2a.tar.gz
linux-3.10-d32abd615a1456fb74aa0f8c4df5a44fccda5c2a.tar.bz2
linux-3.10-d32abd615a1456fb74aa0f8c4df5a44fccda5c2a.zip
upstream: [media] media: Cocci spatch "ptr_ret.spatch"
Use the PTR_RET() macro to simplify error processing. Signed-off-by: Thomas Meyer <thomas@m3y3r.de> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/platform/sh_veu.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/media/platform/sh_veu.c b/drivers/media/platform/sh_veu.c
index 59a9deefb24..aa4cca371cb 100644
--- a/drivers/media/platform/sh_veu.c
+++ b/drivers/media/platform/sh_veu.c
@@ -359,10 +359,7 @@ static int sh_veu_context_init(struct sh_veu_dev *veu)
veu->m2m_ctx = v4l2_m2m_ctx_init(veu->m2m_dev, veu,
sh_veu_queue_init);
- if (IS_ERR(veu->m2m_ctx))
- return PTR_ERR(veu->m2m_ctx);
-
- return 0;
+ return PTR_RET(veu->m2m_ctx);
}
static int sh_veu_querycap(struct file *file, void *priv,