]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] si470x: fix compile warning
authorHans Verkuil <hans.verkuil@cisco.com>
Sat, 27 Aug 2011 14:25:31 +0000 (11:25 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 6 Sep 2011 17:46:38 +0000 (14:46 -0300)
Tobias Lorenz <tobias.lorenz@gmx.net> has looked at this and agreed that the
'buf' variable could be removed.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/radio/si470x/radio-si470x-usb.c

index 4cf537043f99ec420ae8ebb6f960642a72bf9a5c..a6ad707fae963e507afe7fe785edef6114bf8475 100644 (file)
@@ -395,7 +395,6 @@ int si470x_disconnect_check(struct si470x_device *radio)
 static void si470x_int_in_callback(struct urb *urb)
 {
        struct si470x_device *radio = urb->context;
-       unsigned char buf[RDS_REPORT_SIZE];
        int retval;
        unsigned char regnr;
        unsigned char blocknum;
@@ -423,7 +422,6 @@ static void si470x_int_in_callback(struct urb *urb)
 
        if (urb->actual_length > 0) {
                /* Update RDS registers with URB data */
-               buf[0] = RDS_REPORT;
                for (regnr = 0; regnr < RDS_REGISTER_NUM; regnr++)
                        radio->registers[STATUSRSSI + regnr] =
                            get_unaligned_be16(&radio->int_in_buffer[