Commit 417dd69d authored by Manu Abraham's avatar Manu Abraham Committed by Mauro Carvalho Chehab

V4L/DVB (9420): return -EINVAL for invalid parameters

Signed-off-by: default avatarManu Abraham <manu@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent cf6efeb6
...@@ -967,7 +967,7 @@ static int stb0899_read_signal_strength(struct dvb_frontend *fe, u16 *strength) ...@@ -967,7 +967,7 @@ static int stb0899_read_signal_strength(struct dvb_frontend *fe, u16 *strength)
break; break;
default: default:
dprintk(verbose, FE_DEBUG, 1, "Unsupported delivery system"); dprintk(verbose, FE_DEBUG, 1, "Unsupported delivery system");
break; return -EINVAL;
} }
return 0; return 0;
...@@ -1023,7 +1023,7 @@ static int stb0899_read_snr(struct dvb_frontend *fe, u16 *snr) ...@@ -1023,7 +1023,7 @@ static int stb0899_read_snr(struct dvb_frontend *fe, u16 *snr)
break; break;
default: default:
dprintk(verbose, FE_DEBUG, 1, "Unsupported delivery system"); dprintk(verbose, FE_DEBUG, 1, "Unsupported delivery system");
break; return -EINVAL;
} }
return 0; return 0;
...@@ -1085,7 +1085,7 @@ static int stb0899_read_status(struct dvb_frontend *fe, enum fe_status *status) ...@@ -1085,7 +1085,7 @@ static int stb0899_read_status(struct dvb_frontend *fe, enum fe_status *status)
break; break;
default: default:
dprintk(verbose, FE_DEBUG, 1, "Unsupported delivery system"); dprintk(verbose, FE_DEBUG, 1, "Unsupported delivery system");
break; return -EINVAL;
} }
return 0; return 0;
} }
...@@ -1144,6 +1144,7 @@ static int stb0899_read_ber(struct dvb_frontend *fe, u32 *ber) ...@@ -1144,6 +1144,7 @@ static int stb0899_read_ber(struct dvb_frontend *fe, u32 *ber)
break; break;
default: default:
dprintk(verbose, FE_DEBUG, 1, "Unsupported delivery system"); dprintk(verbose, FE_DEBUG, 1, "Unsupported delivery system");
return -EINVAL;
} }
return 0; return 0;
...@@ -1201,7 +1202,7 @@ static int stb0899_set_tone(struct dvb_frontend *fe, fe_sec_tone_mode_t tone) ...@@ -1201,7 +1202,7 @@ static int stb0899_set_tone(struct dvb_frontend *fe, fe_sec_tone_mode_t tone)
stb0899_write_reg(state, STB0899_DISEQCOCFG, 0x20); stb0899_write_reg(state, STB0899_DISEQCOCFG, 0x20);
break; break;
default: default:
break; return -EINVAL;
} }
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment