staging: bcm2835-camera: handle wait_for_completion_timeout return properly
authorNicholas Mc Guire <hofrat@osadl.org>
Sat, 21 Jul 2018 11:31:24 +0000 (13:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Sep 2018 06:38:03 +0000 (08:38 +0200)
commitf80c5cf3de84c08803975e9e1846e414f3fedd4f
tree67e41aa4dffbb6b86653d524c24c79b59bfa9593
parentf313b0593d4a95c701edb509fcd0db608b1ab673
staging: bcm2835-camera: handle wait_for_completion_timeout return properly

[ Upstream commit 5b70084f6cbcd53f615433f9d216e01bd71de0bb ]

wait_for_completion_timeout returns unsigned long not int so a variable of
proper type is introduced. Further the check for <= 0 is ambiguous and
should be == 0 here indicating timeout.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Fixes: 7b3ad5abf027 ("staging: Import the BCM2835 MMAL-based V4L2 camera driver.")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c