diff options
author | Nicholas Mc Guire <hofrat@osadl.org> | 2018-07-21 13:31:24 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-09-26 08:39:26 +0200 |
commit | ad60f993f3ec24b4ca6f9a7e666645b8b5da1096 (patch) | |
tree | 47d992d0757462e012c94754809903162669a4c1 /sound | |
parent | 3360648a723d1b25d41d02310cc87734f42602b6 (diff) |
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>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions