Commit c1d57038 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

V4L/DVB (5477): CodingStyle cleanups on for loops at bttv-cards.c

parent 57747b7f
Loading
Loading
Loading
Loading
+10 −12
Original line number Diff line number Diff line
@@ -3706,7 +3706,8 @@ static void __devinit osprey_eeprom(struct bttv *btv)
	       for (; offset < 8*16; offset += 16) {
		       unsigned short checksum = 0;
		       /* verify the checksum */
		       for(i = 0; i<14; i++) checksum += ee[i+offset];
		       for (i = 0; i < 14; i++)
				checksum += ee[i+offset];
			checksum = ~checksum;  /* no idea why */
			if ((((checksum>>8)&0x0FF) == ee[offset+14]) &&
				   ((checksum & 0x0FF) == ee[offset+15])) {
@@ -3721,7 +3722,6 @@ static void __devinit osprey_eeprom(struct bttv *btv)
	       type = (ee[offset+4]<<8) | (ee[offset+5]);

	       switch(type) {

	       /* 848 based */
	       case 0x0004:
		       btv->c.type = BTTV_BOARD_OSPREY1x0_848;
@@ -4149,8 +4149,7 @@ static int tea5757_read(struct bttv *btv)
	}

	dprintk("bttv%d: tea5757:",btv->c.nr);
	for(i = 0; i < 24; i++)
	{
	for (i = 0; i < 24; i++) {
		udelay(5);
		bus_high(btv,btv->mbox_clk);
		udelay(5);
@@ -4182,8 +4181,7 @@ static int tea5757_write(struct bttv *btv, int value)
	dprintk("bttv%d: tea5757: write 0x%X\n", btv->c.nr, value);
	bus_low(btv,btv->mbox_clk);
	bus_high(btv,btv->mbox_we);
	for(i = 0; i < 25; i++)
	{
	for (i = 0; i < 25; i++) {
		if (reg & 0x1000000)
			bus_high(btv,btv->mbox_data);
		else