Skip to content

Commit a73f5ae

Browse files
intrigus-lgtmripatel-fd
authored andcommitted
gui: remove useless memcpy
This memcpy is useless, because dest and src are the same.
1 parent 479f6f5 commit a73f5ae

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/disco/gui/fd_gui_peers.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,6 @@ fd_gui_peers_handle_vote_update( fd_gui_peers_ctx_t * peers,
727727
(void)now;
728728
fd_gui_peers_vote_t * votes_sorted = votes;
729729
fd_gui_peers_vote_t * votes_scratch = peers->votes_scratch;
730-
fd_memcpy( votes_sorted, votes, vote_cnt*sizeof(fd_gui_peers_vote_t) );
731730

732731
/* deduplicate node accounts, keeping the vote accounts with largest stake */
733732
fd_gui_peers_votes_stake_sort_inplace( votes_sorted, vote_cnt );

0 commit comments

Comments
 (0)