summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/ascot2e.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb-frontends/ascot2e.c')
-rw-r--r--drivers/media/dvb-frontends/ascot2e.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb-frontends/ascot2e.c b/drivers/media/dvb-frontends/ascot2e.c
index f770f6a..8cc8c45 100644
--- a/drivers/media/dvb-frontends/ascot2e.c
+++ b/drivers/media/dvb-frontends/ascot2e.c
@@ -132,7 +132,7 @@ static int ascot2e_write_regs(struct ascot2e_priv *priv,
}
};
- if (len + 1 >= sizeof(buf)) {
+ if (len + 1 > sizeof(buf)) {
dev_warn(&priv->i2c->dev,"wr reg=%04x: len=%d is too big!\n",
reg, len + 1);
return -E2BIG;
OpenPOWER on IntegriCloud