Skip to content

Commit

Permalink
Remove extraneous if statement.
Browse files Browse the repository at this point in the history
Change-Id: Ie2e939d94d7c2fc2661762bb2f532751c1908c92
Reviewed-on: https://chromium-review.googlesource.com/1183856
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Commit-Queue: Erik Chen <erikchen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#585150}
  • Loading branch information
erikchen authored and Commit Bot committed Aug 22, 2018
1 parent 92c351c commit a33e27a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions base/memory/discardable_shared_memory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,9 @@ DiscardableSharedMemory::LockResult DiscardableSharedMemory::Lock(
//
// For more information, see
// https://bugs.chromium.org/p/chromium/issues/detail?id=823915.
if (madvise(reinterpret_cast<char*>(shared_memory_mapping_.memory()) +
AlignToPageSize(sizeof(SharedState)),
AlignToPageSize(mapped_size_), MADV_FREE_REUSE))
;
madvise(reinterpret_cast<char*>(shared_memory_mapping_.memory()) +
AlignToPageSize(sizeof(SharedState)),
AlignToPageSize(mapped_size_), MADV_FREE_REUSE);
return DiscardableSharedMemory::SUCCESS;
#else
return DiscardableSharedMemory::SUCCESS;
Expand Down

0 comments on commit a33e27a

Please sign in to comment.