diff options
| author | Michal Nazarewicz <[email protected]> | 2014-09-10 17:50:24 +0200 |
|---|---|---|
| committer | Felipe Balbi <[email protected]> | 2015-01-12 12:13:29 -0600 |
| commit | 67913bbd0b62d297520667cd3057aff5a5890ca6 (patch) | |
| tree | f863583ae64c446e9381438534b6a11f8f6f4d8d /tools/perf/scripts/python/netdev-times.py | |
| parent | a7657a93d63d87399b53d15999e77973b4f02cf3 (diff) | |
usb: gadget: f_fs: refactor and document __ffs_ep0_read_events better
Instead of using variable length array, use a static length equal to
the size of the ffs->ev.types array. This gets rid of a sparse warning:
drivers/usb/gadget/function/f_fs.c:401:44: warning:
Variable length array is used.
and makes it more explicit that the array has a very tight upper size
limit. Also add some more documentation about the ev.types array and
how its size is limited and affects the rest of the code.
Reported-by: Dan Carpenter <[email protected]>
Reported-by: Rohith Seelaboyina <[email protected]>
Signed-off-by: Michal Nazarewicz <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions