Skip to content

Commit

Permalink
[media] dmxdev: fix a comparition of unsigned expression warning
Browse files Browse the repository at this point in the history
drivers/media/dvb-core/dmxdev.c: In function 'dvb_dmxdev_pes_filter_set':
drivers/media/dvb-core/dmxdev.c:880: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 Oct 28, 2012
1 parent db61371 commit 31becf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/dvb-core/dmxdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ static int dvb_dmxdev_pes_filter_set(struct dmxdev *dmxdev,
dvb_dmxdev_filter_stop(dmxdevfilter);
dvb_dmxdev_filter_reset(dmxdevfilter);

if (params->pes_type > DMX_PES_OTHER || params->pes_type < 0)
if ((unsigned)params->pes_type > DMX_PES_OTHER)
return -EINVAL;

dmxdevfilter->type = DMXDEV_TYPE_PES;
Expand Down

0 comments on commit 31becf0

Please sign in to comment.