Skip to content

Commit

Permalink
staging: line6: Fix checkpatch errors in playback.c
Browse files Browse the repository at this point in the history
Signed-off-by: Shawn Bohrer <shawn.bohrer@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Shawn Bohrer authored and Greg Kroah-Hartman committed Dec 11, 2009
1 parent 45af497 commit 7f66fe5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/staging/line6/playback.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ static int submit_audio_out_urb(struct snd_pcm_substream *substream)
}
}

if ((line6pcm->pos_out += urb_frames) >= runtime->buffer_size)
line6pcm->pos_out += urb_frames;
if (line6pcm->pos_out >= runtime->buffer_size)
line6pcm->pos_out -= runtime->buffer_size;

urb_out->transfer_buffer_length = urb_size;
Expand Down Expand Up @@ -281,7 +282,8 @@ static void audio_out_callback(struct urb *urb)
if (!shutdown) {
submit_audio_out_urb(substream);

if ((line6pcm->bytes_out += length) >= line6pcm->period_out) {
line6pcm->bytes_out += length;
if (line6pcm->bytes_out >= line6pcm->period_out) {
line6pcm->bytes_out -= line6pcm->period_out;
snd_pcm_period_elapsed(substream);
}
Expand Down

0 comments on commit 7f66fe5

Please sign in to comment.