]> git.baikalelectronics.ru Git - kernel.git/commit
[media] ddbridge: fix wait_event_timeout return handling
authorNicholas Mc Guire <hofrat@osadl.org>
Wed, 10 Jun 2015 07:40:02 +0000 (04:40 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 18 Nov 2015 14:21:29 +0000 (12:21 -0200)
commit537cf6736384a4ab949efc365ab25f0203a1b226
tree327a926e5843f1361c33ddccbec5ac09232d4888
parenta9a806cc13115a598351aa64421d4ce0d2c0d2b8
[media] ddbridge: fix wait_event_timeout return handling

API conformance testing for completions with coccinelle spatches are being
used to locate API usage inconsistencies:
./drivers/media/pci/ddbridge/ddbridge-core.c:89
        incorrect check for negative return

Return type of wait_event_timeout is signed long not int and the
return type is >=0 always thus the negative check is unnecessary..
As stat is used here exclusively its type is simply changed and the
negative return check dropped.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/pci/ddbridge/ddbridge-core.c