Merge "More idiomatic cleanup of 9f75a035713d216469f1cabfe4a65f7864e2145a."
am: a48dc55f32
* commit 'a48dc55f326937d29a791e4016f980c589612333':
More idiomatic cleanup of 9f75a035713d216469f1cabfe4a65f7864e2145a.
diff --git a/adb/daemon/main.cpp b/adb/daemon/main.cpp
index 218c1d0..240985f 100644
--- a/adb/daemon/main.cpp
+++ b/adb/daemon/main.cpp
@@ -53,8 +53,7 @@
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";
}
}