summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManu Abraham <manu@linuxtv.org>2007-10-10 13:12:13 +0400
committerManu Abraham <manu@linuxtv.org>2007-10-10 13:12:13 +0400
commit71d6d17ac156761a41221d80254021e9508aaca5 (patch)
tree44daa33af5181d3b18eef6057260b577955ba888
parent623ede12c37482eb1c3f6e84f93306996bef8c24 (diff)
downloadmediapointer-dvb-s2-71d6d17ac156761a41221d80254021e9508aaca5.tar.gz
mediapointer-dvb-s2-71d6d17ac156761a41221d80254021e9508aaca5.tar.bz2
return invalid for invalid parameters
From: Manu Abraham <abraham.manu@gmail.com> Signed-off-by: Manu Abraham <manu@linuxtv.org>
-rw-r--r--linux/drivers/media/dvb/frontends/stb0899_drv.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/linux/drivers/media/dvb/frontends/stb0899_drv.c b/linux/drivers/media/dvb/frontends/stb0899_drv.c
index a53320685..144477a2a 100644
--- a/linux/drivers/media/dvb/frontends/stb0899_drv.c
+++ b/linux/drivers/media/dvb/frontends/stb0899_drv.c
@@ -1008,7 +1008,7 @@ static int stb0899_read_signal_strength(struct dvb_frontend *fe, u16 *strength)
break;
default:
dprintk(verbose, FE_DEBUG, 1, "Unsupported delivery system");
- break;
+ return -EINVAL;
}
return 0;
@@ -1064,7 +1064,7 @@ static int stb0899_read_snr(struct dvb_frontend *fe, u16 *snr)
break;
default:
dprintk(verbose, FE_DEBUG, 1, "Unsupported delivery system");
- break;
+ return -EINVAL;
}
return 0;
@@ -1126,7 +1126,7 @@ static int stb0899_read_status(struct dvb_frontend *fe, enum fe_status *status)
break;
default:
dprintk(verbose, FE_DEBUG, 1, "Unsupported delivery system");
- break;
+ return -EINVAL;
}
return 0;
}
@@ -1185,6 +1185,7 @@ static int stb0899_read_ber(struct dvb_frontend *fe, u32 *ber)
break;
default:
dprintk(verbose, FE_DEBUG, 1, "Unsupported delivery system");
+ return -EINVAL;
}
return 0;
@@ -1242,7 +1243,7 @@ static int stb0899_set_tone(struct dvb_frontend *fe, fe_sec_tone_mode_t tone)
stb0899_write_reg(state, STB0899_DISEQCOCFG, 0x20);
break;
default:
- break;
+ return -EINVAL;
}
return 0;
}