]> git.baikalelectronics.ru Git - kernel.git/commit
staging: atomisp: simplify if statement in atomisp_get_sensor_fps()
authorDaeseok Youn <daeseok.youn@gmail.com>
Mon, 20 Mar 2017 14:42:55 +0000 (14:42 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Mar 2017 07:04:33 +0000 (08:04 +0100)
commit0b10d891d636aec0791263438563ea7b3fce8966
treea3e84852c9d88924ea017c544a7f3aa64aa0123d
parenta618162aba503b9bf182d964a01412db7e9175c1
staging: atomisp: simplify if statement in atomisp_get_sensor_fps()

If v4l2_subdev_call() gets the global frame interval values,
it returned 0 and it could be checked whether numerator is zero or not.

If the numerator is not zero, the fps could be calculated in this function.
If not, it just returns 0.

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/atomisp/pci/atomisp2/atomisp_cmd.c