From: Shinobu Kinjo Date: Wed, 15 Mar 2017 07:39:05 +0000 (+0900) Subject: Clean up: Better to initialize ctx->reply with nullptr not NULL X-Git-Tag: v12.0.2~317^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=324800e34d115fd4bb98b7c3774c591255609b76;p=ceph-ci.git Clean up: Better to initialize ctx->reply with nullptr not NULL Signed-off-by: Shinobu Kinjo --- diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index 97f06ecfb00..3f3f5b088f7 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -3123,7 +3123,7 @@ void PrimaryLogPG::execute_ctx(OpContext *ctx) if (m && !ctx->sent_reply) { MOSDOpReply *reply = ctx->reply; if (reply) - ctx->reply = NULL; + ctx->reply = nullptr; else { reply = new MOSDOpReply(m, 0, get_osdmap()->get_epoch(), 0, true); reply->set_reply_versions(ctx->at_version, @@ -6815,7 +6815,7 @@ void PrimaryLogPG::complete_read_ctx(int result, OpContext *ctx) ctx->reply->get_header().data_off = ctx->data_off; MOSDOpReply *reply = ctx->reply; - ctx->reply = NULL; + ctx->reply = nullptr; if (result >= 0) { if (!ctx->ignore_log_op_stats) {