]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Clean up: Better to initialize ctx->reply with nullptr not NULL 13973/head
authorShinobu Kinjo <shinobu@redhat.com>
Wed, 15 Mar 2017 07:39:05 +0000 (16:39 +0900)
committerShinobu Kinjo <shinobu@redhat.com>
Wed, 15 Mar 2017 07:39:05 +0000 (16:39 +0900)
Signed-off-by: Shinobu Kinjo <shinobu@redhat.com>
src/osd/PrimaryLogPG.cc

index 97f06ecfb00e79b1824f52277270a61737e1703f..3f3f5b088f7cd96c94f177a427b35ea221b2798f 100644 (file)
@@ -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) {