[media] vb2: only check ret if we assigned it
Move the ret check to the right level under if (pb). It is not used by the code before that point if pb is NULL. Signed-off-by: NGustavo Padovan <gustavo.padovan@collabora.com> Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com> Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
Showing
想要评论请 注册 或 登录