OSDN Git Service

[media] af9015: fix sparse warning
authorHans Verkuil <hans.verkuil@cisco.com>
Wed, 20 Aug 2014 19:34:27 +0000 (16:34 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 3 Sep 2014 12:28:22 +0000 (09:28 -0300)
drivers/media/usb/dvb-usb-v2/af9015.c:422:38: warning: cast to restricted __le32

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/dvb-usb-v2/af9015.c

index 5ca738a..16c0b7d 100644 (file)
@@ -419,7 +419,7 @@ static int af9015_eeprom_hash(struct dvb_usb_device *d)
        /* calculate checksum */
        for (i = 0; i < AF9015_EEPROM_SIZE / sizeof(u32); i++) {
                state->eeprom_sum *= GOLDEN_RATIO_PRIME_32;
-               state->eeprom_sum += le32_to_cpu(((u32 *)buf)[i]);
+               state->eeprom_sum += le32_to_cpu(((__le32 *)buf)[i]);
        }
 
        for (i = 0; i < AF9015_EEPROM_SIZE; i += 16)