OSDN Git Service

drm_hwcomposer: Remove unnecessary parentheses in the conditional
authorJohn Stultz <john.stultz@linaro.org>
Thu, 28 Mar 2019 22:18:53 +0000 (15:18 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Sat, 30 Mar 2019 03:18:33 +0000 (20:18 -0700)
As requested by Sean, remove unnecessary parens around the
!preferred_mode_found check.

Change-Id: Ibca46c104ab54be894b860373fc42ec047afd337
Signed-off-by: John Stultz <john.stultz@linaro.org>
drmconnector.cpp

index f55c2d6..ead9312 100644 (file)
@@ -146,7 +146,7 @@ int DrmConnector::UpdateModes() {
     }
   }
   modes_.swap(new_modes);
-  if ((!preferred_mode_found) && (modes_.size() != 0)) {
+  if (!preferred_mode_found && modes_.size() != 0) {
     preferred_mode_id_ = modes_[0].id();
   }
   return 0;