[media] af9005-fe: fix compiler warning
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 25 Aug 2011 13:17:39 +0000 (10:17 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 6 Sep 2011 17:43:59 +0000 (14:43 -0300)
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/af9005-fe.c

index 6ad94745bbdd1f90bcd895e84f4a784870237cad..3263e9749d09dfd610e467da5a583f84c26dc2d1 100644 (file)
@@ -63,11 +63,9 @@ static int af9005_write_word_agc(struct dvb_usb_device *d, u16 reghi,
                                 u16 reglo, u8 pos, u8 len, u16 value)
 {
        int ret;
-       u8 temp;
 
        if ((ret = af9005_write_ofdm_register(d, reglo, (u8) (value & 0xff))))
                return ret;
-       temp = (u8) ((value & 0x0300) >> 8);
        return af9005_write_register_bits(d, reghi, pos, len,
                                          (u8) ((value & 0x300) >> 8));
 }