Skip to contentSkip to conversation

ionic: remove the unused nb_work

PATCH Applied Shannon Nelson 4 participants 4 messages Dec 12, 2024 – Dec 15, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ionic: remove the unused nb_work

From: Brett Creeley <[email protected]>

Remove the empty and unused nb_work and associated ionic_lif_notify_work() function.

v2: separated from previous net patch

---
 drivers/net/ethernet/pensando/ionic/ionic.h     | 1 -
 drivers/net/ethernet/pensando/ionic/ionic_lif.c | 7 -------
 2 files changed, 8 deletions(-)
drivers/net/ethernet/pensando/ionic/ionic.h +0 -1
index 0639bf56bd3a..04f00ea94230 100644
@@ -57,7 +57,6 @@ struct ionic {
 	DECLARE_BITMAP(intrs, IONIC_INTR_CTRL_REGS_MAX);
 	cpumask_var_t *affinity_masks;
 	struct delayed_work doorbell_check_dwork;
-	struct work_struct nb_work;
 	struct notifier_block nb;
 	struct rw_semaphore vf_op_lock;	/* lock for VF operations */
 	struct ionic_vf *vfs;
drivers/net/ethernet/pensando/ionic/ionic_lif.c +0 -7
index 052c767a2c75..05fb46effe0d 100644
@@ -3804,10 +3804,6 @@ int ionic_lif_init(struct ionic_lif *lif)
 	return err;
 }
 
-static void ionic_lif_notify_work(struct work_struct *ws)
-{
-}
-
 static void ionic_lif_set_netdev_info(struct ionic_lif *lif)
 {
 	struct ionic_admin_ctx ctx = {
@@ -3858,8 +3854,6 @@ int ionic_lif_register(struct ionic_lif *lif)
 
 	ionic_lif_register_phc(lif);
 
-	INIT_WORK(&lif->ionic->nb_work, ionic_lif_notify_work);
-
 	lif->ionic->nb.notifier_call = ionic_lif_notify;
 
 	err = register_netdevice_notifier(&lif->ionic->nb);
@@ -3885,7 +3879,6 @@ void ionic_lif_unregister(struct ionic_lif *lif)
 {
 	if (lif->ionic->nb.notifier_call) {
 		unregister_netdevice_notifier(&lif->ionic->nb);
-		cancel_work_sync(&lif->ionic->nb_work);
 		lif->ionic->nb.notifier_call = NULL;
 	}
 
Signature · 1 line
2.17.1
Reviewed-by on v2 1/1
#2 lore raw
In reply to Shannon Nelson
Quoted 11 lines · Shannon Nelson

From: Brett Creeley <[email protected]>

Remove the empty and unused nb_work and associated ionic_lif_notify_work() function.

v2: separated from previous net patch

Signature · 2 lines
Regards,
Kalesh AP
#3 lore raw
In reply to Shannon Nelson
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Thu, 12 Dec 2024 13:20:42 -0800 you wrote:

From: Brett Creeley <[email protected]>

Remove the empty and unused nb_work and associated ionic_lif_notify_work() function.

v2: separated from previous net patch

[...]

Here is the summary with links:
- [v2,net-next] ionic: remove the unused nb_work

    https://git.kernel.org/netdev/net-next/c/a63bb6953966

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html