From 324800e34d115fd4bb98b7c3774c591255609b76 Mon Sep 17 00:00:00 2001 From: Shinobu Kinjo Date: Wed, 15 Mar 2017 16:39:05 +0900 Subject: [PATCH] Clean up: Better to initialize ctx->reply with nullptr not NULL Signed-off-by: Shinobu Kinjo --- src/osd/PrimaryLogPG.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index 97f06ecfb00e7..3f3f5b088f7cd 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) { -- 2.39.5