diff options
Diffstat (limited to 'sound/isa/sb/sb16.c')
-rw-r--r-- | sound/isa/sb/sb16.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sound/isa/sb/sb16.c b/sound/isa/sb/sb16.c index 2c201f78ce50..adf4fdd2c4aa 100644 --- a/sound/isa/sb/sb16.c +++ b/sound/isa/sb/sb16.c | |||
@@ -326,9 +326,12 @@ static void snd_sb16_free(struct snd_card *card) | |||
326 | 326 | ||
327 | static struct snd_card *snd_sb16_card_new(int dev) | 327 | static struct snd_card *snd_sb16_card_new(int dev) |
328 | { | 328 | { |
329 | struct snd_card *card = snd_card_new(index[dev], id[dev], THIS_MODULE, | 329 | struct snd_card *card; |
330 | sizeof(struct snd_card_sb16)); | 330 | int err; |
331 | if (card == NULL) | 331 | |
332 | err = snd_card_create(index[dev], id[dev], THIS_MODULE, | ||
333 | sizeof(struct snd_card_sb16), &card); | ||
334 | if (err < 0) | ||
332 | return NULL; | 335 | return NULL; |
333 | card->private_free = snd_sb16_free; | 336 | card->private_free = snd_sb16_free; |
334 | return card; | 337 | return card; |