removed redundent memcpy

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>