[media] DVB: drxd_hard: handle new bandwidths by returning -EINVAL
authorAndreas Oberritter <obi@linuxtv.org>
Fri, 20 May 2011 21:56:23 +0000 (18:56 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 20 May 2011 22:04:49 +0000 (19:04 -0300)
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>
drivers/media/dvb/frontends/drxd_hard.c

index 30a78af424cbb27a0ad41def9baabfaf41aaf027..ea4c1c361d2b7a12473cd1d9ff6ec19a0aa977a8 100644 (file)
@@ -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;