aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/si2168.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb-frontends/si2168.c')
-rw-r--r--drivers/media/dvb-frontends/si2168.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/dvb-frontends/si2168.c b/drivers/media/dvb-frontends/si2168.c
index 63341f485f9f..5b5fd5db7b2c 100644
--- a/drivers/media/dvb-frontends/si2168.c
+++ b/drivers/media/dvb-frontends/si2168.c
@@ -180,7 +180,10 @@ static int si2168_set_frontend(struct dvb_frontend *fe)
180 goto err; 180 goto err;
181 } 181 }
182 182
183 if (c->bandwidth_hz <= 5000000) 183 if (c->bandwidth_hz == 0) {
184 ret = -EINVAL;
185 goto err;
186 } else if (c->bandwidth_hz <= 5000000)
184 bandwidth = 0x05; 187 bandwidth = 0x05;
185 else if (c->bandwidth_hz <= 6000000) 188 else if (c->bandwidth_hz <= 6000000)
186 bandwidth = 0x06; 189 bandwidth = 0x06;