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-Tag: MMI-PSA29.97-13-9~18729^2~118 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e16cede5a8945bda970b7dd80bc51c539e0e4c2d;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.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) {