diff options
author | Shawn Bohrer <shawn.bohrer@gmail.com> | 2009-11-15 22:17:53 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-12-11 12:21:47 -0800 |
commit | df30c0f0730647f428e54bd0305246292a5cdcb2 (patch) | |
tree | 509985d1ceb3ad9870ca64d4f276d99087b7aeaf /drivers | |
parent | e0645d634666ec6c9970d0addb5982788e13e435 (diff) |
staging: line6: Fix checkpatch errors in capture.c
Signed-off-by: Shawn Bohrer <shawn.bohrer@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/line6/capture.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/staging/line6/capture.c b/drivers/staging/line6/capture.c index 7009f395a23..fd4890de8db 100644 --- a/drivers/staging/line6/capture.c +++ b/drivers/staging/line6/capture.c @@ -219,8 +219,8 @@ static void audio_in_callback(struct urb *urb) fbuf, fsize * bytes_per_frame); } - if ((line6pcm->pos_in_done += - frames) >= runtime->buffer_size) + line6pcm->pos_in_done += frames; + if (line6pcm->pos_in_done >= runtime->buffer_size) line6pcm->pos_in_done -= runtime->buffer_size; } } @@ -235,7 +235,8 @@ static void audio_in_callback(struct urb *urb) if (!shutdown) { submit_audio_in_urb(substream); - if ((line6pcm->bytes_in += length) >= line6pcm->period_in) { + line6pcm->bytes_in += length; + if (line6pcm->bytes_in >= line6pcm->period_in) { line6pcm->bytes_in -= line6pcm->period_in; snd_pcm_period_elapsed(substream); } |