Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76700
b: refs/heads/master
c: d2c932a
h: refs/heads/master
v: v3
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent e36e2ba commit 6233a5b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0e1fab90a8a76e09b669d3159ec910eab7ee97d6
refs/heads/master: d2c932a1f7aca16727ce6670c5eccb0a4e2b47a5
8 changes: 3 additions & 5 deletions trunk/drivers/media/dvb/frontends/tda18271-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -601,13 +601,11 @@ int tda18271_calc_rf_cal(struct dvb_frontend *fe, u32 *freq)
unsigned char *regs = priv->tda18271_regs;
u8 val;

int ret = tda18271_lookup_map(fe, RF_CAL, freq, &val);
if (ret < 0)
goto fail;
tda18271_lookup_map(fe, RF_CAL, freq, &val);

regs[R_EB14] = val;
fail:
return ret;

return 0;
}

/*
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/media/dvb/frontends/tda18271-tables.c
Original file line number Diff line number Diff line change
Expand Up @@ -1098,7 +1098,7 @@ int tda18271_lookup_pll_map(struct dvb_frontend *fe,
}

while ((map[i].lomax * 1000) < *freq) {
if (map[i].lomax == 0) {
if (map[i + 1].lomax == 0) {
tda_map("%s: frequency (%d) out of range\n",
map_name, *freq);
ret = -ERANGE;
Expand Down Expand Up @@ -1169,7 +1169,7 @@ int tda18271_lookup_map(struct dvb_frontend *fe,
}

while ((map[i].rfmax * 1000) < *freq) {
if (map[i].rfmax == 0) {
if (map[i + 1].rfmax == 0) {
tda_map("%s: frequency (%d) out of range\n",
map_name, *freq);
ret = -ERANGE;
Expand Down

0 comments on commit 6233a5b

Please sign in to comment.