diff options
| author | Michal Nazarewicz <mina86@mina86.com> | 2016-01-18 18:30:15 +0100 |
|---|---|---|
| committer | Felipe Balbi <balbi@kernel.org> | 2016-03-04 15:14:33 +0200 |
| commit | 06cd928b0cfc79e9e17e0d36e39329e20238b185 (patch) | |
| tree | fed2b16bdfb4c45e98df7934699416c2c65ad806 /tools/perf/scripts/python | |
| parent | usb: gadget: f_midi: move some of f_midi_transmit to separate func (diff) | |
| download | linux-06cd928b0cfc79e9e17e0d36e39329e20238b185.tar.gz linux-06cd928b0cfc79e9e17e0d36e39329e20238b185.zip | |
usb: gadget: f_midi: fix in_last_port looping logic
In general case, all of midi->in_port pointers may be non-NULL which
implies that the ‘if (\!port)’ condition will never execute thus never
zeroing midi->in_last_port. Fix by rewriting the loop such that the
field is set to zero if \!port or end of loop has been reached.
Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
