Skip to content

Commit

Permalink
src: apply lint fix: use left-leaning pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
jayaddison committed Jan 26, 2021
1 parent 519f212 commit 21ed800
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/large_pages/node_large_page.cc
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ struct text_region FindNodeTextRegion() {
}

#if defined(__linux__)
std::istream *GetTransparentHugePagesConfiguration() {
std::ifstream *ifs = new std::ifstream();
std::istream* GetTransparentHugePagesConfiguration() {
std::ifstream* ifs = new std::ifstream();

ifs->open("/sys/kernel/mm/transparent_hugepage/enabled");
if (!*ifs) {
Expand All @@ -269,7 +269,7 @@ std::istream *GetTransparentHugePagesConfiguration() {
return ifs;
}

bool IsTransparentHugePagesEnabledViaConfiguration(std::istream *configuration) {
bool IsTransparentHugePagesEnabledViaConfiguration(std::istream* configuration) {
std::string token;
while (*configuration >> token) {
if (token == "[always]" || token == "[madvise]") return true;
Expand All @@ -278,7 +278,7 @@ bool IsTransparentHugePagesEnabledViaConfiguration(std::istream *configuration)
}

bool IsTransparentHugePagesEnabled() {
std::istream *configuration = GetTransparentHugePagesConfiguration();
std::istream* configuration = GetTransparentHugePagesConfiguration();
if (configuration == nullptr) {
return false;
}
Expand Down

0 comments on commit 21ed800

Please sign in to comment.