[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>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
94d56ffa0a
commit
63952e8c4a
@@ -2348,8 +2348,9 @@ static int DRX_Start(struct drxd_state *state, s32 off)
|
|||||||
status = Write16(state,
|
status = Write16(state,
|
||||||
FE_AG_REG_IND_DEL__A, 71, 0x0000);
|
FE_AG_REG_IND_DEL__A, 71, 0x0000);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
status = -EINVAL;
|
||||||
}
|
}
|
||||||
status = status;
|
|
||||||
if (status < 0)
|
if (status < 0)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user