power: Remove duplicate operation 04/304604/1 accepted/tizen_unified_toolchain accepted/tizen/unified/20240125.112702 accepted/tizen/unified/toolchain/20240311.065538 accepted/tizen/unified/x/20240205.064119
authoryoungjae <y0.cho@samsung.com>
Thu, 18 May 2023 02:52:13 +0000 (11:52 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Mon, 22 Jan 2024 04:45:16 +0000 (13:45 +0900)
Change-Id: I00ebd2f5883dc4aec26146cdfd99e66caebaa221
Signed-off-by: youngjae <y0.cho@samsung.com>
src/power/power.c

index 417777f..98888b3 100644 (file)
@@ -413,9 +413,9 @@ static void enqueue_transition(const struct syscommon_plugin_deviced_power_trans
        if (!ti_new)
                return;
 
-       memcpy(ti_new, ti, sizeof(struct syscommon_plugin_deviced_power_trans_info));
+       *ti_new = *ti;
 
-       g_queue_push_head(transition_queue, memcpy(ti_new, ti, sizeof(struct syscommon_plugin_deviced_power_trans_info)));
+       g_queue_push_head(transition_queue, ti_new);
 }
 
 // intermediate state of ongoing transition