]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[media] media-entity.c: get rid of var length arrays
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 1 Oct 2015 21:07:53 +0000 (18:07 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 1 Oct 2015 21:10:05 +0000 (18:10 -0300)
commitef69ee1bc2c10fd1c5b389258d8156f3c38bdb33
treea5c80cbea5086ebfee9f72b1905e13f44da6192a
parentca739eb086155007d7264be7ccc07f894d5a7bbe
[media] media-entity.c: get rid of var length arrays

Fix those sparse warnings:
drivers/media/media-entity.c:238:17: warning: Variable length array is used.
drivers/media/media-entity.c:239:17: warning: Variable length array is used.

That allows sparse and other code check tools to verify if the
function is using more stack than allowed.

It also solves a bad Kernel pratice of using var length arrays
at the stack.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/media-entity.c
include/media/media-entity.h