diff options
Diffstat (limited to 'drivers/media/usb/dvb-usb/digitv.c')
-rw-r--r-- | drivers/media/usb/dvb-usb/digitv.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/media/usb/dvb-usb/digitv.c b/drivers/media/usb/dvb-usb/digitv.c index 49b9d63e5885..e66df4fd1a29 100644 --- a/drivers/media/usb/dvb-usb/digitv.c +++ b/drivers/media/usb/dvb-usb/digitv.c | |||
@@ -233,18 +233,22 @@ static struct rc_map_table rc_map_digitv_table[] = { | |||
233 | 233 | ||
234 | static int digitv_rc_query(struct dvb_usb_device *d, u32 *event, int *state) | 234 | static int digitv_rc_query(struct dvb_usb_device *d, u32 *event, int *state) |
235 | { | 235 | { |
236 | int i; | 236 | int ret, i; |
237 | u8 key[5]; | 237 | u8 key[5]; |
238 | u8 b[4] = { 0 }; | 238 | u8 b[4] = { 0 }; |
239 | 239 | ||
240 | *event = 0; | 240 | *event = 0; |
241 | *state = REMOTE_NO_KEY_PRESSED; | 241 | *state = REMOTE_NO_KEY_PRESSED; |
242 | 242 | ||
243 | digitv_ctrl_msg(d,USB_READ_REMOTE,0,NULL,0,&key[1],4); | 243 | ret = digitv_ctrl_msg(d, USB_READ_REMOTE, 0, NULL, 0, &key[1], 4); |
244 | if (ret) | ||
245 | return ret; | ||
244 | 246 | ||
245 | /* Tell the device we've read the remote. Not sure how necessary | 247 | /* Tell the device we've read the remote. Not sure how necessary |
246 | this is, but the Nebula SDK does it. */ | 248 | this is, but the Nebula SDK does it. */ |
247 | digitv_ctrl_msg(d,USB_WRITE_REMOTE,0,b,4,NULL,0); | 249 | ret = digitv_ctrl_msg(d, USB_WRITE_REMOTE, 0, b, 4, NULL, 0); |
250 | if (ret) | ||
251 | return ret; | ||
248 | 252 | ||
249 | /* if something is inside the buffer, simulate key press */ | 253 | /* if something is inside the buffer, simulate key press */ |
250 | if (key[1] != 0) | 254 | if (key[1] != 0) |