• Hans Verkuil's avatar
    media: vivid: fix smatch warnings · adcfdbde
    Hans Verkuil authored
    Reorganize code to fix two smatch warnings:
    
    drivers/media/platform/vivid/vivid-core.c: drivers/media/platform/vivid/vivid-core.c:889 vivid_create_instance() warn: potentially one past the end of array
    'dev->query_dv_timings_qmenu[dev->query_dv_timings_size]'
    drivers/media/platform/vivid/vivid-core.c: drivers/media/platform/vivid/vivid-core.c:889 vivid_create_instance() warn: potentially one past the end of array
    'dev->query_dv_timings_qmenu[dev->query_dv_timings_size]'
    Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
    adcfdbde
vivid-core.c 52.6 KB