Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cf38d4b9 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab
Browse files

[media] bttv: fix sparse warning



bttv-cards.c:3874:55: warning: incorrect type in initializer (different base types)

Also clean up the code a little by adding spaces.

Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 4895cc47
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -3871,7 +3871,7 @@ static void osprey_eeprom(struct bttv *btv, const u8 ee[256])
		unsigned short type;
		unsigned short type;


		for (i = 4 * 16; i < 8 * 16; i += 16) {
		for (i = 4 * 16; i < 8 * 16; i += 16) {
			u16 checksum = ip_compute_csum(ee + i, 16);
			u16 checksum = (__force u16)ip_compute_csum(ee + i, 16);


			if ((checksum & 0xff) + (checksum >> 8) == 0xff)
			if ((checksum & 0xff) + (checksum >> 8) == 0xff)
				break;
				break;