[gnome-settings-daemon] automount: Remove use of useless variable



commit 5fb0f031ea530c8b811c4a7d5a59bde6cc1fca7a
Author: Bastien Nocera <hadess hadess net>
Date:   Sat Sep 24 01:04:05 2011 +0100

    automount: Remove use of useless variable

 plugins/automount/gsd-automount-manager.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/plugins/automount/gsd-automount-manager.c b/plugins/automount/gsd-automount-manager.c
index 2fc0f74..7603075 100644
--- a/plugins/automount/gsd-automount-manager.c
+++ b/plugins/automount/gsd-automount-manager.c
@@ -177,7 +177,7 @@ do_mount_volume (GVolume *volume)
 static void
 check_volume_queue (GsdAutomountManager *manager)
 {
-        GList *l, *next;
+        GList *l;
         GVolume *volume;
 
         l = manager->priv->volume_queue;
@@ -188,14 +188,13 @@ check_volume_queue (GsdAutomountManager *manager)
 
         while (l != NULL) {
                 volume = l->data;
-                next = l->next;
 
                 do_mount_volume (volume);
                 manager->priv->volume_queue =
                         g_list_remove (manager->priv->volume_queue, volume);
 
                 g_object_unref (volume);
-                l = next;
+                l = l->next;
         }
 
         manager->priv->volume_queue = NULL;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]