]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
msg: remove unnecessary assignment
authorChangcheng Liu <changcheng.liu@aliyun.com>
Mon, 12 Oct 2020 02:58:40 +0000 (10:58 +0800)
committerChangcheng Liu <changcheng.liu@aliyun.com>
Mon, 12 Oct 2020 04:59:09 +0000 (12:59 +0800)
memset(&header, 0, sizeof(header)) clear the variable to
be 0.

Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
src/msg/Message.h

index ff7f3325854f01d14587463bfe4d3350fd8d5f91..1c9cb94b1b50fd83856d394913d3fe4e453054c5 100644 (file)
@@ -318,8 +318,6 @@ public:
     header.type = t;
     header.version = version;
     header.compat_version = compat_version;
-    header.priority = 0;  // undef
-    header.data_off = 0;
     memset(&footer, 0, sizeof(footer));
   }