Remove unnecessary code 52/232052/2
authorsanghyeok.oh <sanghyeok.oh@samsung.com>
Tue, 28 Apr 2020 01:59:18 +0000 (10:59 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Wed, 29 Apr 2020 06:26:30 +0000 (06:26 +0000)
Change-Id: Id97ff4a0bbfd2b6d6b9c06399a0d6bb05ac74707

src/storage/storage.c

index 1badb90..ead6194 100644 (file)
@@ -491,13 +491,7 @@ static gboolean check_storage_status(gpointer data)
        dAvail = (double)s.f_bsize * s.f_bavail;
        storage_status_broadcast(&storage_opt_info, dTotal, dAvail);
 
-       if (memnoti_timer) {
-               g_source_remove(memnoti_timer);
-               memnoti_timer = g_timeout_add(MEMNOTI_TIMER_INTERVAL,
-                               check_storage_status, NULL);
-       }
-
-       return G_SOURCE_REMOVE;
+       return G_SOURCE_CONTINUE;
 }
 
 static int init_storage_config_info_all(void)