From: Kefu Chai Date: Wed, 3 Aug 2022 02:37:36 +0000 (+0800) Subject: osd/osd: do not init OSDOp::rval explicitly X-Git-Tag: v18.0.0~339^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4bbc8cc2d3c83972c3824ba65242266e41fcc8ad;p=ceph.git osd/osd: do not init OSDOp::rval explicitly errorcode32_t's ctor can take care of this. it sets the internal value to 0. Signed-off-by: Kefu Chai --- diff --git a/src/osd/osd_types.h b/src/osd/osd_types.h index d1b9a7e92208..cf8160ea4f35 100644 --- a/src/osd/osd_types.h +++ b/src/osd/osd_types.h @@ -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