]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Tue, 24 Jul 2018 12:00:54 +0000 (14:00 +0200)
commit8f5b715ea30ce0e25a95fe9e9d06d6dab6a9a887
tree1f4ea5f80f1bd0f44b5bda65e3d2984667d1e568
parentc652d9266ad6a753f280b9e4e2e6244cf081d2fd
staging: bcm2835-camera: handle wait_for_completion_timeout return properly

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: 1a5643cbb0e3 ("staging: Import the BCM2835 MMAL-based V4L2 camera driver.")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c