Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4946152pxb; Thu, 14 Oct 2021 15:31:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGWUGDd4oJZImvqySZwAykKjhFmrPV2KrlniYW3aa8gP8zoQApZWrjmHvHGKYEsZySxvIT X-Received: by 2002:a17:90b:1806:: with SMTP id lw6mr9155614pjb.222.1634250714109; Thu, 14 Oct 2021 15:31:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634250714; cv=none; d=google.com; s=arc-20160816; b=yH9CpQ77bmc8RDJQZl+rU9hLNjXk8d4eHAiC2WSO5PqDoRwGuIwUMYL+WlxaEHrCzd 4gyqO7dX46NbpNO2nF5+4snIrnyVS6DL6P3+ZiLUuX9+jtojFw3blOkuICI4gwCSkj9W g4A2ePHzUgTGGk4Jdp1nVp4gmI6yr+NC3HoVufOJ+pOOVv3eypaNtTxWOPWNEFZrWQ6y wUvIKej5gN28AvJKpuSSctCJdfGujxMPWKDe0GYG6JhimeAZchX/13KijKsp6EX6mlYI nEF2aSEHVzPYAUxZ5EvpwM1K8oUV9oS0S9EKzF0oFUXOLQwlQ1CSqlMTPSJ/W9Wj8ooj tQ0g== 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=PEU+GpxuN8lKpy0xcPo33X+WSnsshKPW0/yxsOWwkgM=; b=hnZLCETPnrTsjJHfuanIvHy4irPBXnrQdaqSyD2CwmP1hSv6WT2TLe1YrCXSlqPFWT shUgJ6bWGMGz+HeUzycDfuAQtG7LAvdcYv874QXaLvrHq1POSCsbtqJ05EwOFpZLasUd /s3FTn47nhSvpS1rsBoGegsymqWETWt9+uQ1U8qX9crlN8tzFcU36N8aUuJrAxpcsj2b a493/fpLYprVIhtLUqzj4vPQfsgt9PK/ZrrH9fGhNJ4glSa43gVgdWfA9th7tdn4WX1y 8vYLYitTooUNJjdIwcfiXt3fZs3NdTiSyE816sIn5IYvf84ZCUB9KLCC5jxHKMfgWQPr IMTQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k9si6992187pfc.213.2021.10.14.15.31.40; Thu, 14 Oct 2021 15:31:54 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229759AbhJNS2Y (ORCPT + 99 others); Thu, 14 Oct 2021 14:28:24 -0400 Received: from smtp02.smtpout.orange.fr ([80.12.242.124]:60382 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229726AbhJNS2X (ORCPT ); Thu, 14 Oct 2021 14:28:23 -0400 Received: from pop-os.home ([92.140.161.106]) by smtp.orange.fr with ESMTPA id b5QlmBA9UBazob5QlmY6yg; Thu, 14 Oct 2021 20:26:17 +0200 X-ME-Helo: pop-os.home X-ME-Auth: YWZlNiIxYWMyZDliZWIzOTcwYTEyYzlhMmU3ZiQ1M2U2MzfzZDfyZTMxZTBkMTYyNDBjNDJlZmQ3ZQ== X-ME-Date: Thu, 14 Oct 2021 20:26:17 +0200 X-ME-IP: 92.140.161.106 From: Christophe JAILLET To: h.morris@cascoda.com, alex.aring@gmail.com, stefan@datenfreihafen.org, davem@davemloft.net, kuba@kernel.org Cc: linux-wpan@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH] ieee802154: Remove redundant 'flush_workqueue()' calls Date: Thu, 14 Oct 2021 20:26:14 +0200 Message-Id: X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 'destroy_workqueue()' already drains the queue before destroying it, so there is no need to flush it explicitly. Remove the redundant 'flush_workqueue()' calls. This was generated with coccinelle: @@ expression E; @@ - flush_workqueue(E); destroy_workqueue(E); Signed-off-by: Christophe JAILLET --- drivers/net/ieee802154/ca8210.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ieee802154/ca8210.c b/drivers/net/ieee802154/ca8210.c index 3a2824f24caa..ece6ff6049f6 100644 --- a/drivers/net/ieee802154/ca8210.c +++ b/drivers/net/ieee802154/ca8210.c @@ -2938,9 +2938,7 @@ static int ca8210_dev_com_init(struct ca8210_priv *priv) */ static void ca8210_dev_com_clear(struct ca8210_priv *priv) { - flush_workqueue(priv->mlme_workqueue); destroy_workqueue(priv->mlme_workqueue); - flush_workqueue(priv->irq_workqueue); destroy_workqueue(priv->irq_workqueue); } -- 2.30.2