File tree Expand file tree Collapse file tree 2 files changed +0
-6
lines changed
drivers/net/ethernet/broadcom/bnxt Expand file tree Collapse file tree 2 files changed +0
-6
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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
5655struct bnxt_en_dev {
You can’t perform that action at this time.
0 commit comments