diff options
| author | Akinobu Mita <[email protected]> | 2017-10-23 13:30:26 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2017-10-31 12:09:44 -0400 |
| commit | f283c01b8094da9454f4b51c997f578227c29d95 (patch) | |
| tree | d76a59e5eb77206f26e96ab1c6cf0eae54e882c7 /tools/perf/scripts/python | |
| parent | dae82d9d47e0ffeed7f7efee4e760863cf6fd542 (diff) | |
media: ov9650: remove unnecessary terminated entry in menu items array
The test_pattern_menu[] array has two valid items and a null terminated
item. So the control's maximum value which is passed to
v4l2_ctrl_new_std_menu_items() should be one. However,
'ARRAY_SIZE(test_pattern_menu) - 1' is actually passed and it's not
correct.
Fix it by removing unnecessary terminated entry and let the correct
control's maximum value be passed to v4l2_ctrl_new_std_menu_items().
Cc: Sylwester Nawrocki <[email protected]>
Cc: Mauro Carvalho Chehab <[email protected]>
Signed-off-by: Akinobu Mita <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions