]> git.baikalelectronics.ru Git - kernel.git/commit
staging: line6: eliminate useless index_out variable
authorStefan Hajnoczi <stefanha@gmail.com>
Sat, 10 Dec 2011 01:12:29 +0000 (02:12 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 10 Dec 2011 03:26:09 +0000 (19:26 -0800)
commit02ca62c63706d1dfc4ebb1b6863ab97ed2316d9b
treef05383b59f5ce13dfa45e177b14e3fef8f8f4b91
parent9a86d498c86c8597a1185840e4af4aafe2a10cf0
staging: line6: eliminate useless index_out variable

Playback urbs use the index_out counter to decide which part of the
playback buffer to use.  Since the urb already has a unique index in
range [0, LINE6_ISO_BUFFERS) there is no need to keep a separate
counter.

Use the urb index instead.  This also eliminates the possibility of two
urbs using the same playback buffer space if they ever complete
out-of-order for some reason.

Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
Signed-off-by: Markus Grabner <grabner@icg.tugraz.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/line6/pcm.h
drivers/staging/line6/playback.c