Commit 269d91f5 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] vp702x: comment dead code

Since the first version of this driver, the remote controller
code is disabled, adding an early return inside vp702x_rc_query().

Let's disable the code with #if 0, to remove this warning:

drivers/media/usb/dvb-usb/vp702x.c:268 vp702x_rc_query() info: ignoring unreachable code.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 6629e4de
...@@ -259,12 +259,11 @@ static struct rc_map_table rc_map_vp702x_table[] = { ...@@ -259,12 +259,11 @@ static struct rc_map_table rc_map_vp702x_table[] = {
/* remote control stuff (does not work with my box) */ /* remote control stuff (does not work with my box) */
static int vp702x_rc_query(struct dvb_usb_device *d, u32 *event, int *state) static int vp702x_rc_query(struct dvb_usb_device *d, u32 *event, int *state)
{ {
/* remove the following return to enabled remote querying */
#if 0
u8 *key; u8 *key;
int i; int i;
/* remove the following return to enabled remote querying */
return 0;
key = kmalloc(10, GFP_KERNEL); key = kmalloc(10, GFP_KERNEL);
if (!key) if (!key)
return -ENOMEM; return -ENOMEM;
...@@ -286,6 +285,8 @@ static int vp702x_rc_query(struct dvb_usb_device *d, u32 *event, int *state) ...@@ -286,6 +285,8 @@ static int vp702x_rc_query(struct dvb_usb_device *d, u32 *event, int *state)
break; break;
} }
kfree(key); kfree(key);
#endif
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment