From: John Stultz Date: Thu, 28 Mar 2019 22:18:53 +0000 (-0700) Subject: drm_hwcomposer: Remove unnecessary parentheses in the conditional X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=9bd25f9a5f586e745f1d0929c9e7eb1bd8f63126;p=android-x86%2Fexternal-drm_hwcomposer.git drm_hwcomposer: Remove unnecessary parentheses in the conditional As requested by Sean, remove unnecessary parens around the !preferred_mode_found check. Change-Id: Ibca46c104ab54be894b860373fc42ec047afd337 Signed-off-by: John Stultz --- diff --git a/drmconnector.cpp b/drmconnector.cpp index f55c2d6..ead9312 100644 --- a/drmconnector.cpp +++ b/drmconnector.cpp @@ -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;