[media] af9015: fix sparse warning
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>
This commit is contained in:
parent
b565e71dd2
commit
744263246d
1 changed files with 1 additions and 1 deletions
|
@ -419,7 +419,7 @@ static int af9015_eeprom_hash(struct dvb_usb_device *d)
|
||||||
/* calculate checksum */
|
/* calculate checksum */
|
||||||
for (i = 0; i < AF9015_EEPROM_SIZE / sizeof(u32); i++) {
|
for (i = 0; i < AF9015_EEPROM_SIZE / sizeof(u32); i++) {
|
||||||
state->eeprom_sum *= GOLDEN_RATIO_PRIME_32;
|
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)
|
for (i = 0; i < AF9015_EEPROM_SIZE; i += 16)
|
||||||
|
|
Loading…
Add table
Reference in a new issue