diff options
author | Manu Abraham <abraham.manu@gmail.com> | 2007-10-10 05:12:13 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-29 14:53:18 -0500 |
commit | 417dd69de843a2f67a9ff6e21df7de5be5dd8204 (patch) | |
tree | 6401598cef0d3c1a9c08246de7c2294653201850 | |
parent | cf6efeb6705e9828291401f890dcb327a0ea52e7 (diff) |
V4L/DVB (9420): return -EINVAL for invalid parameters
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/dvb/frontends/stb0899_drv.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/media/dvb/frontends/stb0899_drv.c b/drivers/media/dvb/frontends/stb0899_drv.c index cc5db0e8ad06..6e6373002b6c 100644 --- a/drivers/media/dvb/frontends/stb0899_drv.c +++ b/drivers/media/dvb/frontends/stb0899_drv.c | |||
@@ -967,7 +967,7 @@ static int stb0899_read_signal_strength(struct dvb_frontend *fe, u16 *strength) | |||
967 | break; | 967 | break; |
968 | default: | 968 | default: |
969 | dprintk(verbose, FE_DEBUG, 1, "Unsupported delivery system"); | 969 | dprintk(verbose, FE_DEBUG, 1, "Unsupported delivery system"); |
970 | break; | 970 | return -EINVAL; |
971 | } | 971 | } |
972 | 972 | ||
973 | return 0; | 973 | return 0; |
@@ -1023,7 +1023,7 @@ static int stb0899_read_snr(struct dvb_frontend *fe, u16 *snr) | |||
1023 | break; | 1023 | break; |
1024 | default: | 1024 | default: |
1025 | dprintk(verbose, FE_DEBUG, 1, "Unsupported delivery system"); | 1025 | dprintk(verbose, FE_DEBUG, 1, "Unsupported delivery system"); |
1026 | break; | 1026 | return -EINVAL; |
1027 | } | 1027 | } |
1028 | 1028 | ||
1029 | return 0; | 1029 | return 0; |
@@ -1085,7 +1085,7 @@ static int stb0899_read_status(struct dvb_frontend *fe, enum fe_status *status) | |||
1085 | break; | 1085 | break; |
1086 | default: | 1086 | default: |
1087 | dprintk(verbose, FE_DEBUG, 1, "Unsupported delivery system"); | 1087 | dprintk(verbose, FE_DEBUG, 1, "Unsupported delivery system"); |
1088 | break; | 1088 | return -EINVAL; |
1089 | } | 1089 | } |
1090 | return 0; | 1090 | return 0; |
1091 | } | 1091 | } |
@@ -1144,6 +1144,7 @@ static int stb0899_read_ber(struct dvb_frontend *fe, u32 *ber) | |||
1144 | break; | 1144 | break; |
1145 | default: | 1145 | default: |
1146 | dprintk(verbose, FE_DEBUG, 1, "Unsupported delivery system"); | 1146 | dprintk(verbose, FE_DEBUG, 1, "Unsupported delivery system"); |
1147 | return -EINVAL; | ||
1147 | } | 1148 | } |
1148 | 1149 | ||
1149 | return 0; | 1150 | return 0; |
@@ -1201,7 +1202,7 @@ static int stb0899_set_tone(struct dvb_frontend *fe, fe_sec_tone_mode_t tone) | |||
1201 | stb0899_write_reg(state, STB0899_DISEQCOCFG, 0x20); | 1202 | stb0899_write_reg(state, STB0899_DISEQCOCFG, 0x20); |
1202 | break; | 1203 | break; |
1203 | default: | 1204 | default: |
1204 | break; | 1205 | return -EINVAL; |
1205 | } | 1206 | } |
1206 | return 0; | 1207 | return 0; |
1207 | } | 1208 | } |