From 6195335f3de27b2e7e0890dd5fcca84a293e7eba Mon Sep 17 00:00:00 2001 From: Matthias Benesch Date: Sun, 4 Oct 2009 15:00:42 +0200 Subject: Small bugfixing within ngene-snd.c. From: Matthias Benesch Replaced integer "ret" by integer "err" in method "ngene_snd_init". Priority: normal --- linux/drivers/media/video/ngene/ngene-snd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'linux/drivers/media/video/ngene/ngene-snd.c') 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; -- cgit v1.2.3