diff options
author | Matthias Benesch <twoof7@freenet.de> | 2009-10-04 15:00:42 +0200 |
---|---|---|
committer | Matthias Benesch <twoof7@freenet.de> | 2009-12-08 21:29:15 +0100 |
commit | 6195335f3de27b2e7e0890dd5fcca84a293e7eba (patch) | |
tree | ec22fde9464263893a6582fb743f8d0aad178f2a | |
parent | 1dffd93ac86955af7823b1f3bd7de064697c4e33 (diff) | |
download | mediapointer-dvb-s2-6195335f3de27b2e7e0890dd5fcca84a293e7eba.tar.gz mediapointer-dvb-s2-6195335f3de27b2e7e0890dd5fcca84a293e7eba.tar.bz2 |
Small bugfixing within ngene-snd.c.
From: Matthias Benesch <twoof7@freenet.de>
Replaced integer "ret" by integer "err" in method "ngene_snd_init".
Priority: normal
-rw-r--r-- | linux/drivers/media/video/ngene/ngene-snd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/drivers/media/video/ngene/ngene-snd.c b/linux/drivers/media/video/ngene/ngene-snd.c index 28348b4c9..36e796ed4 100644 --- a/linux/drivers/media/video/ngene/ngene-snd.c +++ b/linux/drivers/media/video/ngene/ngene-snd.c @@ -389,10 +389,10 @@ int ngene_snd_init(struct ngene_channel *chan) if (card == NULL) return -ENOMEM; #else - int ret = snd_card_create(index[sound_dev], id[sound_dev], THIS_MODULE, + err = snd_card_create(index[sound_dev], id[sound_dev], THIS_MODULE, sizeof(struct mychip), &card); - if (ret < 0) - return ret; + if (err < 0) + return err; #endif chip= card->private_data; |