From: Arlin Davis Date: Mon, 23 Jun 2008 22:26:30 +0000 (-0700) Subject: dapl: remove needless terminating 0 in dto_op_str functions. X-Git-Tag: dapl-2.0.11-1~7 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=68638bde71b529a142c13ac332cd44435cabc896;p=~ardavis%2Fdapl.git dapl: remove needless terminating 0 in dto_op_str functions. Signed-off by: Arlin Davis ardavis@ichips.intel.com --- diff --git a/dapl/common/dapl_evd_util.c b/dapl/common/dapl_evd_util.c index ea3e27c..63fee81 100644 --- a/dapl/common/dapl_evd_util.c +++ b/dapl/common/dapl_evd_util.c @@ -554,8 +554,7 @@ STATIC _INLINE_ char * DAPL_GET_DTO_OP_STR(int op) "OP_SEND", "OP_RECEIVE", "OP_RDMA_WRITE", - "OP_RDMA_READ", - 0 + "OP_RDMA_READ" }; return ((op < 0 || op > 3) ? "Invalid DTO OP?" : dto_ops[op]); } diff --git a/dapl/openib_cma/dapl_ib_dto.h b/dapl/openib_cma/dapl_ib_dto.h index ffb5dca..334fa4b 100644 --- a/dapl/openib_cma/dapl_ib_dto.h +++ b/dapl/openib_cma/dapl_ib_dto.h @@ -482,8 +482,7 @@ STATIC _INLINE_ char * dapls_dto_op_str(int op) "OP_FETCH_AND_ADD", "OP_RECEIVE", "OP_RECEIVE_IMM", - "OP_BIND_MW", - 0 + "OP_BIND_MW" }; return ((op < 0 || op > 9) ? "Invalid CQE OP?" : optable[op]); } diff --git a/dapl/openib_scm/dapl_ib_dto.h b/dapl/openib_scm/dapl_ib_dto.h index 6ba669f..4b06b72 100644 --- a/dapl/openib_scm/dapl_ib_dto.h +++ b/dapl/openib_scm/dapl_ib_dto.h @@ -482,8 +482,7 @@ STATIC _INLINE_ char * dapls_dto_op_str(int op) "OP_FETCH_AND_ADD", "OP_RECEIVE", "OP_RECEIVE_IMM", - "OP_BIND_MW", - 0 + "OP_BIND_MW" }; return ((op < 0 || op > 9) ? "Invalid CQE OP?" : optable[op]); }