]> git.baikalelectronics.ru Git - kernel.git/commit
staging:line6: Fix use of variable length arrays
authorHimangi Saraogi <himangi774@gmail.com>
Sun, 9 Mar 2014 00:17:12 +0000 (05:47 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Mar 2014 04:35:16 +0000 (20:35 -0800)
commit2a64f373228c5399906e1136cd4d9eaf5ca763e5
treeadc3763012badd17d0f4d147ac64f6814e2b2546
parent06501c5ea584bd1e05bbb8d69b20ee91585c4e5f
staging:line6: Fix use of variable length arrays

This patch fixes the sparse warning:
drivers/staging/line6/midi.c:50:34: warning: Variable length array is used.
The size is same as the variable LINE6_FALLBACK_MAXPACKETSIZE,
so use that.

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/line6/midi.c