]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - drivers/base/sync.c
sync: clean up compiler warnings
[linux-2.6.git] / drivers / base / sync.c
index 7028b49a2d66b4149b67779484847239e6825764..1535b4176d790d6a4ef2c39ace75effba29404a6 100644 (file)
@@ -87,9 +87,6 @@ static void sync_timeline_free(struct kref *kref)
 
 void sync_timeline_destroy(struct sync_timeline *obj)
 {
-       unsigned long flags;
-       bool needs_freeing;
-
        obj->destroyed = true;
 
        /*
@@ -117,7 +114,6 @@ static void sync_timeline_remove_pt(struct sync_pt *pt)
 {
        struct sync_timeline *obj = pt->parent;
        unsigned long flags;
-       bool needs_freeing = false;
 
        spin_lock_irqsave(&obj->active_list_lock, flags);
        if (!list_empty(&pt->active_list))