OSDN Git Service

media: dvb-usb-v2: Report error on all error paths
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Sun, 19 May 2019 11:18:29 +0000 (07:18 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 22 May 2019 19:29:41 +0000 (15:29 -0400)
commitdd5f551b58a8b557fd7fc93f238dc0dc29526e32
treecb484e39bd942e1b4025363a179b674a1311e839
parent6d0d1ff9ff21fbb06b867c13a1d41ce8ddcd8230
media: dvb-usb-v2: Report error on all error paths

actual_length != wlen is the only error path which does not generate an
error message. Adding an error message here allows to report a more
specific error and to remove the error reporting from the call sites.

Also clean up the error paths - in case of an error, the remaining
code is skipped, and ret is returned. Skip setting ret and return
immediately (no cleanup necessary).

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/usb/dvb-usb-v2/dvb_usb_urb.c