]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/osd: do not init OSDOp::rval explicitly
authorKefu Chai <tchaikov@gmail.com>
Wed, 3 Aug 2022 02:37:36 +0000 (10:37 +0800)
committerKefu Chai <tchaikov@gmail.com>
Thu, 4 Aug 2022 13:33:51 +0000 (21:33 +0800)
errorcode32_t's ctor can take care of this. it sets the internal value
to 0.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/osd/osd_types.h

index d1b9a7e92208dbce8ce387bd1ebbf1f15a149d43..cf8160ea4f35c3c4c4d35da76213a9fdee4d5a71 100644 (file)
@@ -4096,7 +4096,7 @@ struct OSDOp {
   sobject_t soid;
 
   ceph::buffer::list indata, outdata;
-  errorcode32_t rval = 0;
+  errorcode32_t rval;
 
   OSDOp() {
     // FIPS zeroization audit 20191115: this memset clean for security