1
1

mtl/ofi: Remove memset() from progress path.

Этот коммит содержится в:
Yohann Burette 2015-04-20 13:13:02 -07:00
родитель d2eda04801
Коммит 19607d2ce7

Просмотреть файл

@ -56,8 +56,8 @@ __opal_attribute_always_inline__ static inline int
ompi_mtl_ofi_progress(void) ompi_mtl_ofi_progress(void)
{ {
int ret, count = 0; int ret, count = 0;
struct fi_cq_tagged_entry wc; struct fi_cq_tagged_entry wc = { 0 };
struct fi_cq_err_entry error; struct fi_cq_err_entry error = { 0 };
ompi_mtl_ofi_request_t *ofi_req = NULL; ompi_mtl_ofi_request_t *ofi_req = NULL;
/** /**
@ -66,7 +66,6 @@ ompi_mtl_ofi_progress(void)
* Call the request's callback. * Call the request's callback.
*/ */
while (true) { while (true) {
memset(&wc, 0, sizeof(wc));
ret = fi_cq_read(ompi_mtl_ofi.cq, (void *)&wc, 1); ret = fi_cq_read(ompi_mtl_ofi.cq, (void *)&wc, 1);
if (ret > 0) { if (ret > 0) {
count++; count++;
@ -86,7 +85,6 @@ ompi_mtl_ofi_progress(void)
* An error occured and is being reported via the CQ. * An error occured and is being reported via the CQ.
* Read the error and forward it to the upper layer. * Read the error and forward it to the upper layer.
*/ */
memset(&error, 0, sizeof(error));
ret = fi_cq_readerr(ompi_mtl_ofi.cq, ret = fi_cq_readerr(ompi_mtl_ofi.cq,
&error, &error,
0); 0);