From: Mauro Carvalho Chehab Date: Sun, 3 Jul 2011 21:18:14 +0000 (-0300) Subject: [media] drxk: Return -EINVAL if an invalid bandwidth is used X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e16cede5a8945bda970b7dd80bc51c539e0e4c2d;p=openwrt%2Fstaging%2Fblogic.git [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 --- 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, if (status < 0) break; break; + default: + return -EINVAL; } if (iqmRcRateOfs == 0) {