Commit 0043dbcf authored by Gal Pressman's avatar Gal Pressman Committed by Jason Gunthorpe

RDMA/efa: Remove unused cpu field from irq struct

The cpu field in efa_irq struct is unused, remove it.

Link: https://lore.kernel.org/r/20210811151131.39138-3-galpress@amazon.comReviewed-by: default avatarFiras JahJah <firasj@amazon.com>
Reviewed-by: default avatarYossi Leybovich <sleybo@amazon.com>
Signed-off-by: default avatarGal Pressman <galpress@amazon.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
parent cbe2de39
/* SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */ /* SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */
/* /*
* Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All rights reserved. * Copyright 2018-2021 Amazon.com, Inc. or its affiliates. All rights reserved.
*/ */
#ifndef _EFA_H_ #ifndef _EFA_H_
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
struct efa_irq { struct efa_irq {
irq_handler_t handler; irq_handler_t handler;
void *data; void *data;
int cpu;
u32 vector; u32 vector;
cpumask_t affinity_hint_mask; cpumask_t affinity_hint_mask;
char name[EFA_IRQNAME_SIZE]; char name[EFA_IRQNAME_SIZE];
......
...@@ -109,7 +109,6 @@ static void efa_setup_mgmnt_irq(struct efa_dev *dev) ...@@ -109,7 +109,6 @@ static void efa_setup_mgmnt_irq(struct efa_dev *dev)
dev->admin_irq.vector = dev->admin_irq.vector =
pci_irq_vector(dev->pdev, dev->admin_msix_vector_idx); pci_irq_vector(dev->pdev, dev->admin_msix_vector_idx);
cpu = cpumask_first(cpu_online_mask); cpu = cpumask_first(cpu_online_mask);
dev->admin_irq.cpu = cpu;
cpumask_set_cpu(cpu, cpumask_set_cpu(cpu,
&dev->admin_irq.affinity_hint_mask); &dev->admin_irq.affinity_hint_mask);
dev_info(&dev->pdev->dev, "Setup irq:0x%p vector:%d name:%s\n", dev_info(&dev->pdev->dev, "Setup irq:0x%p vector:%d name:%s\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment