Skip to contentSkip to conversation

dib8000: merge two conditionals

PATCH New Németh Márton 1 participant 1 message Nov 22, 2009 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dib8000: merge two conditionals

From: Márton Németh <[email protected]>

Merge two ifs: the condition is the same. The second if uses the ncoeff which is initialized in the first if.

---

linux/drivers/media/dvb/frontends/dib8000.c +1 -2
diff -r bc16afd1e7a4 linux/drivers/media/dvb/frontends/dib8000.c
@@ -1402,10 +1402,9 @@
 			}
 			break;
 		}
-	}
-	if (state->fe.dtv_property_cache.isdbt_sb_mode == 1)
 		for (i = 0; i < 8; i++)
 			dib8000_write_word(state, 343 + i, ncoeff[i]);
+	}
 
 	// P_small_coef_ext_enable=ISDB-Tsb, P_small_narrow_band=ISDB-Tsb, P_small_last_seg=13, P_small_offset_num_car=5
 	dib8000_write_word(state, 351,