Skip to content

Commit 5bccacb

Browse files
Kalesh APkuba-moo
authored andcommitted
bnxt_en: Remove unused field "ref_count" in struct bnxt_ulp
The "ref_count" field in struct bnxt_ulp is unused after commit a43c26f ("RDMA/bnxt_re: Remove the sriov config callback"). So we can just remove it now. Reviewed-by: Somnath Kotur <[email protected]> Signed-off-by: Kalesh AP <[email protected]> Signed-off-by: Michael Chan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent c21c8e1 commit 5bccacb

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ void bnxt_unregister_dev(struct bnxt_en_dev *edev)
148148
struct net_device *dev = edev->net;
149149
struct bnxt *bp = netdev_priv(dev);
150150
struct bnxt_ulp *ulp;
151-
int i = 0;
152151

153152
ulp = edev->ulp_tbl;
154153
netdev_lock(dev);
@@ -164,10 +163,6 @@ void bnxt_unregister_dev(struct bnxt_en_dev *edev)
164163
synchronize_rcu();
165164
ulp->max_async_event_id = 0;
166165
ulp->async_events_bmap = NULL;
167-
while (atomic_read(&ulp->ref_count) != 0 && i < 10) {
168-
msleep(100);
169-
i++;
170-
}
171166
mutex_unlock(&edev->en_dev_lock);
172167
netdev_unlock(dev);
173168
return;

drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ struct bnxt_ulp {
5050
unsigned long *async_events_bmap;
5151
u16 max_async_event_id;
5252
u16 msix_requested;
53-
atomic_t ref_count;
5453
};
5554

5655
struct bnxt_en_dev {

0 commit comments

Comments
 (0)