aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/drxk_hard.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-07-03 17:18:14 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-27 16:55:45 -0400
commite16cede5a8945bda970b7dd80bc51c539e0e4c2d (patch)
tree3190dbdd37d7734432f3acf3a8aa2b9c5e55229a /drivers/media/dvb/frontends/drxk_hard.c
parent469ffe08366589f3096247590b16f712b20c51c3 (diff)
[media] drxk: Return -EINVAL if an invalid bandwidth is used
drivers/media/dvb/frontends/drxk_hard.c: In function ‘SetDVBT’: drivers/media/dvb/frontends/drxk_hard.c:3766: warning: enumeration value ‘BANDWIDTH_5_MHZ’ not handled in switch drivers/media/dvb/frontends/drxk_hard.c:3766: warning: enumeration value ‘BANDWIDTH_10_MHZ’ not handled in switch drivers/media/dvb/frontends/drxk_hard.c:3766: warning: enumeration value ‘BANDWIDTH_1_712_MHZ’ not handled in switch Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/drxk_hard.c')
-rw-r--r--drivers/media/dvb/frontends/drxk_hard.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/drxk_hard.c b/drivers/media/dvb/frontends/drxk_hard.c
index f2c5a9261608..f7ae90081114 100644
--- a/drivers/media/dvb/frontends/drxk_hard.c
+++ b/drivers/media/dvb/frontends/drxk_hard.c
@@ -3822,6 +3822,8 @@ static int SetDVBT(struct drxk_state *state, u16 IntermediateFreqkHz,
3822 if (status < 0) 3822 if (status < 0)
3823 break; 3823 break;
3824 break; 3824 break;
3825 default:
3826 return -EINVAL;
3825 } 3827 }
3826 3828
3827 if (iqmRcRateOfs == 0) { 3829 if (iqmRcRateOfs == 0) {