drivers/video: Return 0 in case g_video_sensor_ops or get_supported_value is NULL
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
e002edf87c
commit
c8868b3745
@ -779,7 +779,9 @@ static int32_t get_default_value(uint32_t id)
|
||||
if ((g_video_sensor_ops == NULL) ||
|
||||
(g_video_sensor_ops->get_supported_value == NULL))
|
||||
{
|
||||
return -EINVAL;
|
||||
/* Don't care(unsupported parameter) */
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
ret = g_video_sensor_ops->get_supported_value(id, &value);
|
||||
|
Loading…
Reference in New Issue
Block a user