aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/media/usb/dvb-usb-v2
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-10-25 15:33:39 +0200
committerMauro Carvalho Chehab <mchehab@kernel.org>2019-11-09 09:15:20 +0100
commit74a96b51a36de4d86660fbc56b05d86668162d6b (patch)
tree202c118b42cff1db1dc2119773425cac4bb473b4 /drivers/media/usb/dvb-usb-v2
parentmedia: b2c2-flexcop-usb: add sanity checking (diff)
downloadwireguard-linux-74a96b51a36de4d86660fbc56b05d86668162d6b.tar.xz
wireguard-linux-74a96b51a36de4d86660fbc56b05d86668162d6b.zip
media: flexcop-usb: ensure -EIO is returned on error condition
An earlier commit hard coded a return 0 to function flexcop_usb_i2c_req even though the an -EIO was intended to be returned in the case where ret != buflen. Fix this by replacing the return 0 with the return of ret to return the error return code. Addresses-Coverity: ("Unused value") Fixes: b430eaba0be5 ("[media] flexcop-usb: don't use stack for DMA") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media/usb/dvb-usb-v2')
0 files changed, 0 insertions, 0 deletions