]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - sound/core/init.c
Merge branch 'drm-core-next' of git://people.freedesktop.org/~airlied/linux
[karo-tx-linux.git] / sound / core / init.c
index 30ecad41403c1becb741f7312ca247eb96054b8c..2c041bb36ab3c177e032e16e39ee47777dce7f48 100644 (file)
@@ -342,7 +342,6 @@ static const struct file_operations snd_shutdown_f_ops =
 int snd_card_disconnect(struct snd_card *card)
 {
        struct snd_monitor_file *mfile;
-       struct file *file;
        int err;
 
        if (!card)
@@ -366,8 +365,6 @@ int snd_card_disconnect(struct snd_card *card)
        
        spin_lock(&card->files_lock);
        list_for_each_entry(mfile, &card->files_list, list) {
-               file = mfile->file;
-
                /* it's critical part, use endless loop */
                /* we have no room to fail */
                mfile->disconnected_f_op = mfile->file->f_op;