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)
commitc62990801d3beb7e6182c742832128ef3e2b1100
treea3e84852c9d88924ea017c544a7f3aa64aa0123d
parent3797616eaa3000f5526aab8ef02000a92fbc5415
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