commit | 9e7893bf86a18b8a3f709d32811f56ccc2df3449 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Wed Dec 16 08:45:05 2015 -0800 |
committer | Elliott Hughes <enh@google.com> | Wed Dec 16 08:45:05 2015 -0800 |
tree | 703eda2de8bb94d805c36a261c810989694e8ee2 | |
parent | 57134adecbcbc988922295c466e174c04251b53a [diff] [blame] |
More idiomatic cleanup of 9f75a035713d216469f1cabfe4a65f7864e2145a. Change-Id: Id936946375d2be56ba10bf3aa5804f52cdbecc2d
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"; } }