diff options
author | Mariusz Kozlowski <m.kozlowski@tuxland.pl> | 2009-06-21 14:26:59 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-06-22 01:54:21 -0400 |
commit | 8bd9bca3c1a214350e2f2f1e2fd493ed24c06f7e (patch) | |
tree | 36b727c9c87a326fbd5ad1af4f1b2259532d2b0b | |
parent | 4f64e150191bfddc7f5c0768f325f747dbca1913 (diff) |
sound: fix check for return value in snd_pcm_hw_refine
'params' is a pointer and looking at the code this probably should be a check
for ioctl return value.
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-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 84da3ba17c86..ac2150e0670d 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, | |||
320 | snd_mask_max(¶ms->masks[SNDRV_PCM_HW_PARAM_CHANNELS])) { | 320 | snd_mask_max(¶ms->masks[SNDRV_PCM_HW_PARAM_CHANNELS])) { |
321 | changed = substream->ops->ioctl(substream, | 321 | changed = substream->ops->ioctl(substream, |
322 | SNDRV_PCM_IOCTL1_FIFO_SIZE, params); | 322 | SNDRV_PCM_IOCTL1_FIFO_SIZE, params); |
323 | if (params < 0) | 323 | if (changed < 0) |
324 | return changed; | 324 | return changed; |
325 | } | 325 | } |
326 | } | 326 | } |