Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sh_veu: Replace PTR_RET with PTR_ERR_OR_ZERO

PTR_RET is now deprecated. Use PTR_ERR_OR_ZERO instead.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

authored by

Sachin Kamat and committed by
Rusty Russell
627df4bc 28ce4201

+1 -1
+1 -1
drivers/media/platform/sh_veu.c
··· 359 359 veu->m2m_ctx = v4l2_m2m_ctx_init(veu->m2m_dev, veu, 360 360 sh_veu_queue_init); 361 361 362 - return PTR_RET(veu->m2m_ctx); 362 + return PTR_ERR_OR_ZERO(veu->m2m_ctx); 363 363 } 364 364 365 365 static int sh_veu_querycap(struct file *file, void *priv,