commit | 83c5181c07f075f2c24a50422056db42a76c1a8f | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Wed Dec 16 18:12:39 2015 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed Dec 16 18:12:39 2015 +0000 |
tree | 703eda2de8bb94d805c36a261c810989694e8ee2 | |
parent | 22236d8d01ead57923f22aaac174cb7e274188fd [diff] | |
parent | 575b1d462a350da8ff250c0f48b2d30fa1a80d7c [diff] |
Merge "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"; } }