diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-06-22 17:03:54 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-06-22 17:03:54 +0200 |
commit | 12bc738596ffe4e7f566e13856a0d37ba229b539 (patch) | |
tree | bd9ade7c91ed9e6b2e1c6f2f77b149844d5cc28f | |
parent | b61eaa924c320821469caa0cd2bf89e7a1ec8bd0 (diff) | |
parent | 8bd9bca3c1a214350e2f2f1e2fd493ed24c06f7e (diff) | |
download | op-kernel-dev-12bc738596ffe4e7f566e13856a0d37ba229b539.zip op-kernel-dev-12bc738596ffe4e7f566e13856a0d37ba229b539.tar.gz |
Merge branch 'topic/pcm-jiffies-check' into for-linus
* topic/pcm-jiffies-check:
sound: fix check for return value in snd_pcm_hw_refine
-rw-r--r-- | sound/core/pcm_native.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c index 84da3ba..ac2150e 100644 --- a/sound/core/pcm_native.c +++ b/sound/core/pcm_native.c @@ -320,7 +320,7 @@ int snd_pcm_hw_refine(struct snd_pcm_substream *substream, snd_mask_max(¶ms->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; } } |