From patchwork Thu Oct 26 04:43:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Soumya Negi X-Patchwork-Id: 13437253 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 992F4C25B48 for ; Thu, 26 Oct 2023 04:45:19 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3218D10E756; Thu, 26 Oct 2023 04:45:19 +0000 (UTC) Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by gabe.freedesktop.org (Postfix) with ESMTPS id C7F4C10E756; Thu, 26 Oct 2023 04:45:17 +0000 (UTC) Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-68fb85afef4so426189b3a.1; Wed, 25 Oct 2023 21:45:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698295517; x=1698900317; darn=lists.freedesktop.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Vu8QLeYUjZNbSnkixSTXmF2Y28p223rbJ5vKgFenCLg=; b=TxdOOcKtpvtJQ5hT3e6Va7OmUPfYuycOPMff9Ce3U0R4/BWF5dVRmuD4hr+p0NZQN+ maTn7AxFX1bX/k/4kn6/5OOG7eriNfQQtYTP/VjaldLDQRYA3Ym4E9mIc3dpJmzur8d3 hxX4yTl+G7NELaAiIltGMJFdg6HU11SrfavDpoYQbg1aAdFitKCyXGlxaqjXAIXMLKV8 ipEgSlE16G5cfYHMLpDHkj5OvZbir31FhL30pqW2d0sLUGFRFjvCfKeoZT8O95EilBmR 2Mg15BS7tYYT4lPSGyK3Fp5SsbEC3Ca6dhQ/p31msySbayyfmBYmE3BUE34EPkZD2nA6 MerQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698295517; x=1698900317; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Vu8QLeYUjZNbSnkixSTXmF2Y28p223rbJ5vKgFenCLg=; b=E5O/rafnTLEKLwDS1Vo1cEAV6Ius/wwVJGucRej+XWzzo46z7CXt1qkCMOdZys+t+S 6BJ9vk+ETdw32RF61RqOie0UXGy1hIcYm1cD8AbppoN21LgpRAQksa9DOyXqjcnhufFe E6d3DxoYIc4UcwSbR9g/Yp0y+TmFTCfBGFp36irEC/5hOmDNgR8Exljz6ayEKB1dRJZo 0nU8yZIkN4sbSwtqlPNqT76vhhIrzI8Mt2S1sFOlHb71fuGuI82H11OwCNsF5w10EcKb o8fHFcnNW+RVNgL35m1vrlYjlvsfhFzcDNY3hvgMOaeAApGd4fYOICj+YrkwyUKwo6Ow kA7Q== X-Gm-Message-State: AOJu0YyJTTGAttrUlAVzX5361L60g00f1CRiP04uPaUrtu5XJSf5eoof vAvCbjCladBxQk/hW6nxf/A= X-Google-Smtp-Source: AGHT+IHmLx1vjbCUmM6pGN0s+FyIMFfTEfVvUbiEiM3526beXxMOKxTQqToByDEvSkrLS32RNXfE8A== X-Received: by 2002:a05:6a00:24cd:b0:6be:5367:2131 with SMTP id d13-20020a056a0024cd00b006be53672131mr18403694pfv.24.1698295517258; Wed, 25 Oct 2023 21:45:17 -0700 (PDT) Received: from Negi (2603-8000-b93d-20a0-3476-69a5-23d3-7dbd.res6.spectrum.com. [2603:8000:b93d:20a0:3476:69a5:23d3:7dbd]) by smtp.gmail.com with ESMTPSA id k6-20020a63f006000000b005b6c1972c99sm9680031pgh.7.2023.10.25.21.45.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 21:45:16 -0700 (PDT) From: Soumya Negi To: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Daniel Vetter Date: Wed, 25 Oct 2023 21:43:08 -0700 Message-ID: <20231026044309.17213-1-soumya.negi97@gmail.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH] drm/i915/gt: Remove {} from if-else X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andi Shyti , intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Prathap Kumar Valsan Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" In accordance to Linux coding style(Documentation/process/4.Coding.rst), remove unneeded braces from if-else block as all arms of this block contain single statements. Suggested-by: Andi Shyti Signed-off-by: Soumya Negi Acked-by: Karolina Stolarek Reviewed-by: Andi Shyti --- drivers/gpu/drm/i915/gt/intel_ggtt.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/gt/intel_ggtt.c b/drivers/gpu/drm/i915/gt/intel_ggtt.c index 1c93e84278a0..9f6f9e138532 100644 --- a/drivers/gpu/drm/i915/gt/intel_ggtt.c +++ b/drivers/gpu/drm/i915/gt/intel_ggtt.c @@ -226,16 +226,15 @@ static void guc_ggtt_invalidate(struct i915_ggtt *ggtt) gen8_ggtt_invalidate(ggtt); list_for_each_entry(gt, &ggtt->gt_list, ggtt_link) { - if (intel_guc_tlb_invalidation_is_available(>->uc.guc)) { + if (intel_guc_tlb_invalidation_is_available(>->uc.guc)) guc_ggtt_ct_invalidate(gt); - } else if (GRAPHICS_VER(i915) >= 12) { + else if (GRAPHICS_VER(i915) >= 12) intel_uncore_write_fw(gt->uncore, GEN12_GUC_TLB_INV_CR, GEN12_GUC_TLB_INV_CR_INVALIDATE); - } else { + else intel_uncore_write_fw(gt->uncore, GEN8_GTCR, GEN8_GTCR_INVALIDATE); - } } }