Skip to content

Commit

Permalink
Merge branch 'topic/pcm-jiffies-check' into for-linus
Browse files Browse the repository at this point in the history
* topic/pcm-jiffies-check:
  sound: fix check for return value in snd_pcm_hw_refine
  • Loading branch information
Takashi Iwai committed Jun 22, 2009
2 parents b61eaa9 + 8bd9bca commit 12bc738
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/core/pcm_native.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ int snd_pcm_hw_refine(struct snd_pcm_substream *substream,
snd_mask_max(&params->masks[SNDRV_PCM_HW_PARAM_CHANNELS])) {
changed = substream->ops->ioctl(substream,
SNDRV_PCM_IOCTL1_FIFO_SIZE, params);
if (params < 0)
if (changed < 0)
return changed;
}
}
Expand Down

0 comments on commit 12bc738

Please sign in to comment.