[media] vb2: only check ret if we assigned it
authorGustavo Padovan <gustavo.padovan@collabora.com>
Wed, 15 Feb 2017 17:55:28 +0000 (15:55 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 22 Mar 2017 13:10:26 +0000 (10:10 -0300)
commit938e20adfd2ccfac0f3858ee898f3a0e2641d457
treec54c3671cfaab4f70cbf0331bb760c367c25099d
parentd5798ee3422b9a763fda6294f8589c5f9e8ee797
[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: Gustavo Padovan <gustavo.padovan@collabora.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/v4l2-core/videobuf2-core.c