File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -181,9 +181,9 @@ Result<FreeableBuffer> MmapDataLoader::load(
181181 size_t size,
182182 ET_UNUSED const DataLoader::SegmentInfo& segment_info) const {
183183 // Ensure read range is valid.
184- auto err = validate_input (offset, size);
185- if (err != Error::Ok) {
186- return err ;
184+ auto validation_err = validate_input (offset, size);
185+ if (validation_err != Error::Ok) {
186+ return validation_err ;
187187 }
188188
189189 // mmap() will fail if the size is zero.
@@ -225,7 +225,7 @@ Result<FreeableBuffer> MmapDataLoader::load(
225225
226226 if (mlock_config_ == MlockConfig::UseMlock ||
227227 mlock_config_ == MlockConfig::UseMlockIgnoreErrors) {
228- int err = ::mlock (pages, size);
228+ auto err = ::mlock (pages, size);
229229 if (err < 0 ) {
230230 if (mlock_config_ == MlockConfig::UseMlockIgnoreErrors) {
231231 ET_LOG (
You can’t perform that action at this time.
0 commit comments