[media] cxd2820r_t2: Fix a warning: stream_id is unsigned
drivers/media/dvb-frontends/cxd2820r_t2.c: In function 'cxd2820r_set_frontend_t2': drivers/media/dvb-frontends/cxd2820r_t2.c:128:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Родитель
9ce5eca7c4
Коммит
a9af539252
|
@ -125,7 +125,7 @@ int cxd2820r_set_frontend_t2(struct dvb_frontend *fe)
|
||||||
buf[2] = ((if_ctl >> 0) & 0xff);
|
buf[2] = ((if_ctl >> 0) & 0xff);
|
||||||
|
|
||||||
/* PLP filtering */
|
/* PLP filtering */
|
||||||
if (c->stream_id < 0 || c->stream_id > 255) {
|
if (c->stream_id > 255) {
|
||||||
dev_dbg(&priv->i2c->dev, "%s: Disable PLP filtering\n", __func__);
|
dev_dbg(&priv->i2c->dev, "%s: Disable PLP filtering\n", __func__);
|
||||||
ret = cxd2820r_wr_reg(priv, 0x023ad , 0);
|
ret = cxd2820r_wr_reg(priv, 0x023ad , 0);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче