aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@linuxtv.org>2011-05-20 17:56:23 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-05-20 18:04:49 -0400
commit63952e8c4ae7f3272cd37321a71428f3637f650f (patch)
treea24159b3abc6f3d3b854c38c5f860bfd1307d4b8
parent94d56ffa0a9bf11dfb602dae9223089e09a8e050 (diff)
[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 <obi@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/dvb/frontends/drxd_hard.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/drxd_hard.c b/drivers/media/dvb/frontends/drxd_hard.c
index 30a78af424c..ea4c1c361d2 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)
2348 status = Write16(state, 2348 status = Write16(state,
2349 FE_AG_REG_IND_DEL__A, 71, 0x0000); 2349 FE_AG_REG_IND_DEL__A, 71, 0x0000);
2350 break; 2350 break;
2351 default:
2352 status = -EINVAL;
2351 } 2353 }
2352 status = status;
2353 if (status < 0) 2354 if (status < 0)
2354 break; 2355 break;
2355 2356