summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/ngene/ngene-snd.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/video/ngene/ngene-snd.c')
-rw-r--r--linux/drivers/media/video/ngene/ngene-snd.c6
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;