From 5fb66ae5595b7435e8954df31473fad15a74b8c2 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 18 Oct 2018 08:27:05 +0200 Subject: clang-tidy readability-simplify-boolean-expr Change-Id: I78fa01a6c803dec782488490b730af3a11814d64 Reviewed-on: https://gerrit.libreoffice.org/61902 Tested-by: Jenkins Reviewed-by: Noel Grandin --- opencl/source/openclwrapper.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'opencl') diff --git a/opencl/source/openclwrapper.cxx b/opencl/source/openclwrapper.cxx index b276197eb93a..bee764560e83 100644 --- a/opencl/source/openclwrapper.cxx +++ b/opencl/source/openclwrapper.cxx @@ -760,10 +760,7 @@ void findDeviceInfoFromDeviceId(cl_device_id aDeviceId, size_t& rDeviceId, size_ bool canUseOpenCL() { - if (getenv("SAL_DISABLE_OPENCL") || !officecfg::Office::Common::Misc::UseOpenCL::get()) - return false; - - return true; + return !getenv("SAL_DISABLE_OPENCL") && officecfg::Office::Common::Misc::UseOpenCL::get(); } bool switchOpenCLDevice(const OUString* pDevice, bool bAutoSelect, bool bForceEvaluation, OUString& rOutSelectedDeviceVersionIDString) -- cgit