diff options
Diffstat (limited to 'sound/core/init.c')
-rw-r--r-- | sound/core/init.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/core/init.c b/sound/core/init.c index 35419054821c..04734e047bfe 100644 --- a/sound/core/init.c +++ b/sound/core/init.c | |||
@@ -400,7 +400,6 @@ static const struct file_operations snd_shutdown_f_ops = | |||
400 | int snd_card_disconnect(struct snd_card *card) | 400 | int snd_card_disconnect(struct snd_card *card) |
401 | { | 401 | { |
402 | struct snd_monitor_file *mfile; | 402 | struct snd_monitor_file *mfile; |
403 | int err; | ||
404 | 403 | ||
405 | if (!card) | 404 | if (!card) |
406 | return -EINVAL; | 405 | return -EINVAL; |
@@ -445,9 +444,7 @@ int snd_card_disconnect(struct snd_card *card) | |||
445 | #endif | 444 | #endif |
446 | 445 | ||
447 | /* notify all devices that we are disconnected */ | 446 | /* notify all devices that we are disconnected */ |
448 | err = snd_device_disconnect_all(card); | 447 | snd_device_disconnect_all(card); |
449 | if (err < 0) | ||
450 | dev_err(card->dev, "not all devices for card %i can be disconnected\n", card->number); | ||
451 | 448 | ||
452 | snd_info_card_disconnect(card); | 449 | snd_info_card_disconnect(card); |
453 | if (card->registered) { | 450 | if (card->registered) { |