From 078d2d96326f62d59b4e5d55d37980536c8f61c1 Mon Sep 17 00:00:00 2001 From: Robert Maynard Date: Tue, 8 Nov 2022 08:31:13 -0500 Subject: [PATCH] Correct style issues found by CI --- src/common/cuda_pinned_allocator.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/common/cuda_pinned_allocator.h b/src/common/cuda_pinned_allocator.h index dd34e8929937..8c9f6c4e89d3 100644 --- a/src/common/cuda_pinned_allocator.h +++ b/src/common/cuda_pinned_allocator.h @@ -81,11 +81,10 @@ class pinned_allocator { XGBOOST_DEVICE inline bool operator==(pinned_allocator const& x) const { return true; } - XGBOOST_DEVICE inline bool operator!=(pinned_allocator const& x) const - { + XGBOOST_DEVICE inline bool operator!=(pinned_allocator const& x) const { return !operator==(x); } }; -} -} -} +} // namespace cuda +} // namespace common +} // namespace xgboost