diff options
Diffstat (limited to 'drivers/media/video/cx231xx/cx231xx-input.c')
-rw-r--r-- | drivers/media/video/cx231xx/cx231xx-input.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/media/video/cx231xx/cx231xx-input.c b/drivers/media/video/cx231xx/cx231xx-input.c index 45e14cac4622..8a75a908e709 100644 --- a/drivers/media/video/cx231xx/cx231xx-input.c +++ b/drivers/media/video/cx231xx/cx231xx-input.c | |||
@@ -27,12 +27,16 @@ | |||
27 | static int get_key_isdbt(struct IR_i2c *ir, u32 *ir_key, | 27 | static int get_key_isdbt(struct IR_i2c *ir, u32 *ir_key, |
28 | u32 *ir_raw) | 28 | u32 *ir_raw) |
29 | { | 29 | { |
30 | int rc; | ||
30 | u8 cmd, scancode; | 31 | u8 cmd, scancode; |
31 | 32 | ||
32 | dev_dbg(&ir->rc->input_dev->dev, "%s\n", __func__); | 33 | dev_dbg(&ir->rc->input_dev->dev, "%s\n", __func__); |
33 | 34 | ||
34 | /* poll IR chip */ | 35 | /* poll IR chip */ |
35 | if (1 != i2c_master_recv(ir->c, &cmd, 1)) | 36 | rc = i2c_master_recv(ir->c, &cmd, 1); |
37 | if (rc < 0) | ||
38 | return rc; | ||
39 | if (rc != 1) | ||
36 | return -EIO; | 40 | return -EIO; |
37 | 41 | ||
38 | /* it seems that 0xFE indicates that a button is still hold | 42 | /* it seems that 0xFE indicates that a button is still hold |