Skip to content

Commit

Permalink
[media] cxd2820r_t2: Fix a warning: stream_id is unsigned
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mauro Carvalho Chehab committed Apr 15, 2013
1 parent 9ce5eca commit a9af539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/cxd2820r_t2.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ int cxd2820r_set_frontend_t2(struct dvb_frontend *fe)
buf[2] = ((if_ctl >> 0) & 0xff);

/* 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__);
ret = cxd2820r_wr_reg(priv, 0x023ad , 0);
if (ret)
Expand Down

0 comments on commit a9af539

Please sign in to comment.