From 4bbc8cc2d3c83972c3824ba65242266e41fcc8ad Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 3 Aug 2022 10:37:36 +0800 Subject: [PATCH] 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 --- src/osd/osd_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/osd_types.h b/src/osd/osd_types.h index d1b9a7e9220..cf8160ea4f3 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 -- 2.47.3