diff options
| author | Takashi Iwai <[email protected]> | 2017-05-22 17:43:04 +0200 |
|---|---|---|
| committer | Takashi Iwai <[email protected]> | 2017-05-23 07:03:55 +0200 |
| commit | 53e7bf452584e73df8a529a2b157a1225a52637f (patch) | |
| tree | 697697b2c5ccd436f4c801458025a21c757c6b43 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | a02cb8f8def634159b60c3a4d6ba16e471b46e0c (diff) | |
ALSA: control: Simplify snd_ctl_elem_list() implementation
This patch simplifies the code of snd_ctl_elem_list() in the following
ways:
- Avoid a vmalloc() temporary buffer but do copy in each iteration;
the vmalloc buffer was introduced at the time we took the spinlock
for the ctl element management.
- Use the standard list_for_each_entry() macro
- Merge two loops into one;
it used to be a loop for skipping until offset becomes zero and
another loop to copy the data. They can be folded into a single
loop easily.
Reviewed-by: Takashi Sakamoto <[email protected]>
Tested-by: Takashi Sakamoto <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions