mirror of
https://github.com/torvalds/linux.git
synced 2024-12-02 17:11:33 +00:00
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>
This commit is contained in:
parent
28ce42013c
commit
627df4bc95
@ -359,7 +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);
|
||||
|
||||
return PTR_RET(veu->m2m_ctx);
|
||||
return PTR_ERR_OR_ZERO(veu->m2m_ctx);
|
||||
}
|
||||
|
||||
static int sh_veu_querycap(struct file *file, void *priv,
|
||||
|
Loading…
Reference in New Issue
Block a user