diff options
-rw-r--r-- | sound/pci/au88x0/au88x0_pcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/au88x0/au88x0_pcm.c b/sound/pci/au88x0/au88x0_pcm.c index 6a13ca1d545e..7b5baa173859 100644 --- a/sound/pci/au88x0/au88x0_pcm.c +++ b/sound/pci/au88x0/au88x0_pcm.c | |||
@@ -506,7 +506,7 @@ static int __devinit snd_vortex_new_pcm(vortex_t * chip, int idx, int nr) | |||
506 | int i; | 506 | int i; |
507 | int err, nr_capt; | 507 | int err, nr_capt; |
508 | 508 | ||
509 | if ((chip == 0) || (idx < 0) || (idx > VORTEX_PCM_LAST)) | 509 | if ((chip == 0) || (idx < 0) || (idx >= VORTEX_PCM_LAST)) |
510 | return -ENODEV; | 510 | return -ENODEV; |
511 | 511 | ||
512 | /* idx indicates which kind of PCM device. ADB, SPDIF, I2S and A3D share the | 512 | /* idx indicates which kind of PCM device. ADB, SPDIF, I2S and A3D share the |