From 9e7893bf86a18b8a3f709d32811f56ccc2df3449 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 16 Dec 2015 08:45:05 -0800 Subject: [PATCH] More idiomatic cleanup of 9f75a035713d216469f1cabfe4a65f7864e2145a. Change-Id: Id936946375d2be56ba10bf3aa5804f52cdbecc2d --- adb/daemon/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/adb/daemon/main.cpp b/adb/daemon/main.cpp index 218c1d0bb..240985f5e 100644 --- a/adb/daemon/main.cpp +++ b/adb/daemon/main.cpp @@ -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"; } }