Commit 1d3726ae authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

[media] si470x: fix compile warning

Tobias Lorenz <tobias.lorenz@gmx.net> has looked at this and agreed that the
'buf' variable could be removed.
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent ba08831b
...@@ -395,7 +395,6 @@ int si470x_disconnect_check(struct si470x_device *radio) ...@@ -395,7 +395,6 @@ int si470x_disconnect_check(struct si470x_device *radio)
static void si470x_int_in_callback(struct urb *urb) static void si470x_int_in_callback(struct urb *urb)
{ {
struct si470x_device *radio = urb->context; struct si470x_device *radio = urb->context;
unsigned char buf[RDS_REPORT_SIZE];
int retval; int retval;
unsigned char regnr; unsigned char regnr;
unsigned char blocknum; unsigned char blocknum;
...@@ -423,7 +422,6 @@ static void si470x_int_in_callback(struct urb *urb) ...@@ -423,7 +422,6 @@ static void si470x_int_in_callback(struct urb *urb)
if (urb->actual_length > 0) { if (urb->actual_length > 0) {
/* Update RDS registers with URB data */ /* Update RDS registers with URB data */
buf[0] = RDS_REPORT;
for (regnr = 0; regnr < RDS_REGISTER_NUM; regnr++) for (regnr = 0; regnr < RDS_REGISTER_NUM; regnr++)
radio->registers[STATUSRSSI + regnr] = radio->registers[STATUSRSSI + regnr] =
get_unaligned_be16(&radio->int_in_buffer[ get_unaligned_be16(&radio->int_in_buffer[
......
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