Blame SOURCES/bz1434528-2-Totempg-remove-duplicate-memcpy-in-mcast_msg-func.patch
|
|
3062ca |
From 4a8e9d80409590cb42732ae3105b5ae71fda52c1 Mon Sep 17 00:00:00 2001
|
|
|
3062ca |
From: Bin Liu <bliu@suse.com>
|
|
|
3062ca |
Date: Fri, 2 Dec 2016 10:37:27 +0800
|
|
|
3062ca |
Subject: [PATCH] Totempg: remove duplicate memcpy in mcast_msg func
|
|
|
3062ca |
|
|
|
3062ca |
In function mcast_msg of totempg.c, line 923, there is a memcpy call in
|
|
|
3062ca |
"else" branch, and also another memcpy out of the "else" branch, while
|
|
|
3062ca |
the two calls have the same parameters. It is possibleto remove the memcpy
|
|
|
3062ca |
in "else" branch.
|
|
|
3062ca |
|
|
|
3062ca |
Signed-off-by: Bin Liu <bliu@suse.com>
|
|
|
3062ca |
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
|
|
|
3062ca |
(cherry picked from commit 819d66ca1ccaa86ef21fc4112033b38ce3f9af29)
|
|
|
3062ca |
---
|
|
|
3062ca |
exec/totempg.c | 2 --
|
|
|
3062ca |
1 files changed, 0 insertions(+), 2 deletions(-)
|
|
|
3062ca |
|
|
|
3062ca |
diff --git a/exec/totempg.c b/exec/totempg.c
|
|
|
3062ca |
index 0b46782..05729be 100644
|
|
|
3062ca |
--- a/exec/totempg.c
|
|
|
3062ca |
+++ b/exec/totempg.c
|
|
|
3062ca |
@@ -934,8 +934,6 @@ static int mcast_msg (
|
|
|
3062ca |
data_ptr = (unsigned char *)iovec[i].iov_base + copy_base;
|
|
|
3062ca |
else {
|
|
|
3062ca |
data_ptr = fragmentation_data;
|
|
|
3062ca |
- memcpy (&fragmentation_data[fragment_size],
|
|
|
3062ca |
- (unsigned char *)iovec[i].iov_base + copy_base, copy_len);
|
|
|
3062ca |
}
|
|
|
3062ca |
|
|
|
3062ca |
memcpy (&fragmentation_data[fragment_size],
|
|
|
3062ca |
--
|
|
|
3062ca |
1.7.1
|
|
|
3062ca |
|