Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1579331pxb; Thu, 4 Mar 2021 15:21:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJwOtdxO5r/l771wjPuuDODOeIeqiOBGbaVRr3rQgipSPYskW7QG4NHf+ie3dz6PYeqCJz9x X-Received: by 2002:a17:906:aac5:: with SMTP id kt5mr6816091ejb.548.1614900101555; Thu, 04 Mar 2021 15:21:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614900101; cv=none; d=google.com; s=arc-20160816; b=LCjIAe8nMGR7dmDKtkzzdE5oGVTOrnIHu1Cy4uv/IbeX90QzGqhD2kdUtULRaoRl4w LOdoccsR7yFBJHHXKgm1q7uHhgmlUIZtfP/2qfbbUoSSQuuAYa/+EujP8XLaxKNMgJfe wn8L4u2oqhxLNmaqE003riM/HqfYHY49KGdEQ+bO+r5OXYy82CkUfg+dHdjbb+O00VIl 2cBkp2zKkpkokAHl2moeQmgbXP8s1x7zhATNCT/yi69MRgEOm1q7TrwFFqD3ufZx8TlL OUmAsZqOlttdux+3JHAjzh72oP2iLugZ5CeFE8hmPqcRFVZWx1rBLKyCzXVFk41Uc9my NsmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=XYauwH43gZnBZD3IaPobn4z99UwWSqcFE3fSBNZ5FKU=; b=Oaex/Xss0Cdj7f+u1eTWnId6X0JvNkY3HyXpcLdoud9iP4Bw80DDRF94kAP55B87oR tgMvNfoz1UzitY7DCQVpbhzhbI/oMoR/ktPoKMj5CWqWTn+r0IqJPHBXzSYypjPjzkMJ JiO9aq+9LNXgYINa7h/p9hvxcJWcoLag2mCiFEF4fp0IPNdVlAv6o/H/EWFHtBVBsyTr /hyTfJXCtgd3c0T3WtLZaQSOZ8snIZo7PIcBiu3tq8FEtqCQhYw66gjOInJS0G/by/Kw 2I3I+Oul34BDW3zne5Dwv7BHQt7C1nDfc/0XqCzY9FPpCv5ewfeqfXZ/l/xQ9zfQ6x2/ nftw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x18si348663eji.400.2021.03.04.15.21.19; Thu, 04 Mar 2021 15:21:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573479AbhCCRVf (ORCPT + 99 others); Wed, 3 Mar 2021 12:21:35 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:35909 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383274AbhCCNqE (ORCPT ); Wed, 3 Mar 2021 08:46:04 -0500 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lHRV0-0007Nh-O4; Wed, 03 Mar 2021 13:25:10 +0000 From: Colin King To: Harry Wentland , Leo Li , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Airlie , Daniel Vetter , Aurabindo Pillai , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH][next] drm/amdgpu/display: remove redundant continue statement Date: Wed, 3 Mar 2021 13:25:10 +0000 Message-Id: <20210303132510.66904-1-colin.king@canonical.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King The continue statement in a for-loop is redudant and can be removed. Clean up the code to address this. Addresses-Coverity: ("Continue as no effect") Fixes: b6f91fc183f7 ("drm/amdgpu/display: buffer INTERRUPT_LOW_IRQ_CONTEXT interrupt work") Signed-off-by: Colin Ian King --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c index 8ce10d0973c5..d3c687d07ee6 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c @@ -520,9 +520,7 @@ static void amdgpu_dm_irq_schedule_work(struct amdgpu_device *adev, return; list_for_each_entry (handler_data, handler_list, list) { - if (!queue_work(system_highpri_wq, &handler_data->work)) { - continue; - } else { + if (queue_work(system_highpri_wq, &handler_data->work)) { work_queued = true; break; } -- 2.30.0