projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db61371
)
[media] dmxdev: fix a comparition of unsigned expression warning
author
Mauro Carvalho Chehab
<mchehab@redhat.com>
Sat, 27 Oct 2012 18:30:47 +0000
(15:30 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Sun, 28 Oct 2012 09:38:42 +0000
(07:38 -0200)
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>
drivers/media/dvb-core/dmxdev.c
patch
|
blob
|
history
diff --git
a/drivers/media/dvb-core/dmxdev.c
b/drivers/media/dvb-core/dmxdev.c
index 889c9c16c6df81ec7e2175a3d4c1f858ef4f61c2..d81dbb22aa814fd0b92f8e9c089a9c2f2550ce16 100644
(file)
--- a/
drivers/media/dvb-core/dmxdev.c
+++ b/
drivers/media/dvb-core/dmxdev.c
@@
-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;