From: Andreas Oberritter Date: Fri, 20 May 2011 21:56:23 +0000 (-0300) Subject: [media] DVB: drxd_hard: handle new bandwidths by returning -EINVAL X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=63952e8c4ae7f3272cd37321a71428f3637f650f;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [media] DVB: drxd_hard: handle new bandwidths by returning -EINVAL drivers/media/dvb/frontends/drxd_hard.c: In function ‘DRX_Start’: drivers/media/dvb/frontends/drxd_hard.c:2327: warning: enumeration value ‘BANDWIDTH_5_MHZ’ not handled in switch drivers/media/dvb/frontends/drxd_hard.c:2327: warning: enumeration value ‘BANDWIDTH_10_MHZ’ not handled in switch drivers/media/dvb/frontends/drxd_hard.c:2327: warning: enumeration value ‘BANDWIDTH_1_712_MHZ’ not handled in switch [mchehab@redhat.com: removed the status = status assignment after the switch] Signed-off-by: Andreas Oberritter Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb/frontends/drxd_hard.c b/drivers/media/dvb/frontends/drxd_hard.c index 30a78af424cb..ea4c1c361d2b 100644 --- a/drivers/media/dvb/frontends/drxd_hard.c +++ b/drivers/media/dvb/frontends/drxd_hard.c @@ -2348,8 +2348,9 @@ static int DRX_Start(struct drxd_state *state, s32 off) status = Write16(state, FE_AG_REG_IND_DEL__A, 71, 0x0000); break; + default: + status = -EINVAL; } - status = status; if (status < 0) break;