power: Remove duplicate operation 74/293274/5 accepted/tizen/7.0/unified/20240122.175818
authoryoungjae <y0.cho@samsung.com>
Thu, 18 May 2023 02:52:13 +0000 (11:52 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 22 Jan 2024 04:19:54 +0000 (04:19 +0000)
Change-Id: I00ebd2f5883dc4aec26146cdfd99e66caebaa221
Signed-off-by: youngjae <y0.cho@samsung.com>
src/power/power.c

index f6f05e9100ffc64d12f369cb21418f3a9c9b482b..555540f17cac234b2d4c933f6f376d302ccffa99 100644 (file)
@@ -412,9 +412,9 @@ static void enqueue_transition(const struct trans_info *ti)
        if (!ti_new)
                return;
 
-       memcpy(ti_new, ti, sizeof(struct trans_info));
+       *ti_new = *ti;
 
-       g_queue_push_head(transition_queue, memcpy(ti_new, ti, sizeof(struct trans_info)));
+       g_queue_push_head(transition_queue, ti_new);
 }
 
 // intermediate state of ongoing transition