mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
media: v4l2-ctrls: make array range static
Don't populate the read-only array range on the stack but instead it static. Also makes the object code a little smaller. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
2bea838824
commit
fc5004e5d4
1 changed files with 1 additions and 1 deletions
|
@ -382,7 +382,7 @@ validate_vp9_seg_params(struct v4l2_vp9_segmentation *seg)
|
|||
}
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(seg->feature_data); i++) {
|
||||
const int range[] = { 255, 63, 3, 0 };
|
||||
static const int range[] = { 255, 63, 3, 0 };
|
||||
|
||||
for (j = 0; j < ARRAY_SIZE(seg->feature_data[j]); j++) {
|
||||
if (seg->feature_data[i][j] < -range[j] ||
|
||||
|
|
Loading…
Reference in a new issue