Message ID | 1304882240-23044-3-git-send-email-steve@stevekerrison.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
diff --git a/drivers/media/dvb/frontends/drxd_hard.c b/drivers/media/dvb/frontends/drxd_hard.c index 30a78af..b3b0704 100644 --- a/drivers/media/dvb/frontends/drxd_hard.c +++ b/drivers/media/dvb/frontends/drxd_hard.c @@ -2325,6 +2325,10 @@ static int DRX_Start(struct drxd_state *state, s32 off) InitEC and ResetEC functions */ switch (p->bandwidth) { + default: + printk(KERN_INFO "drxd: Unsupported bandwidth mode %u, reverting to default\n", + p->bandwidth); + /* Fall back to auto */ case BANDWIDTH_AUTO: case BANDWIDTH_8_MHZ: /* (64/7)*(8/8)*1000000 */
Additional bandwidth modes have been added in frontend.h drxd_hard.c had no default case so the compiler was warning about a non-exhausive switch statement. This has been fixed by making the default behaviour the same as BANDWIDTH_AUTO, with the addition of a printk to notify if this ever happens. Signed-off-by: Steve Kerrison <steve@stevekerrison.com> --- drivers/media/dvb/frontends/drxd_hard.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)