[media] hdpvr: Refactoring for hdpvr_read()
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 29 Dec 2015 10:02:43 +0000 (08:02 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 1 Feb 2016 09:41:14 +0000 (07:41 -0200)
commitb68554cd76bfed57a3aac2fc4ac4c60478d90050
treeb485b6eedfd437dec105a4f9822f79fc5ed1d0e3
parent80c1bce9aa315ac70738f79afb4f7c93ae27d9fa
[media] hdpvr: Refactoring for hdpvr_read()

Let us return directly if the element "status" of the variable "buf"
indicates "BUFSTAT_READY".
A check repetition can be excluded for the variable "ret" at the end then.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/hdpvr/hdpvr-video.c