Merge "More idiomatic cleanup of 9f75a035713d216469f1cabfe4a65f7864e2145a."

am: a48dc55f32

* commit 'a48dc55f326937d29a791e4016f980c589612333':
  More idiomatic cleanup of 9f75a03571.
This commit is contained in:
Elliott Hughes 2015-12-16 18:39:58 +00:00 committed by android-build-merger
commit 14f74dae87
1 changed files with 1 additions and 2 deletions

View File

@ -53,8 +53,7 @@ static void drop_capabilities_bounding_set_if_needed() {
continue;
}
int err = prctl(PR_CAPBSET_DROP, i, 0, 0, 0);
if (err < 0) {
if (prctl(PR_CAPBSET_DROP, i, 0, 0, 0) == -1) {
PLOG(FATAL) << "Could not drop capabilities";
}
}