File tree Expand file tree Collapse file tree 4 files changed +7
-13
lines changed
drivers/infiniband/ulp/ipoib Expand file tree Collapse file tree 4 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -500,7 +500,7 @@ void ipoib_pkey_event(struct work_struct *work);
500
500
void ipoib_ib_dev_cleanup (struct net_device * dev );
501
501
502
502
int ipoib_ib_dev_open (struct net_device * dev );
503
- int ipoib_ib_dev_up (struct net_device * dev );
503
+ void ipoib_ib_dev_up (struct net_device * dev );
504
504
void ipoib_ib_dev_down (struct net_device * dev );
505
505
void ipoib_ib_dev_stop (struct net_device * dev );
506
506
void ipoib_pkey_dev_check_presence (struct net_device * dev );
@@ -513,7 +513,7 @@ void ipoib_mcast_carrier_on_task(struct work_struct *work);
513
513
void ipoib_mcast_send (struct net_device * dev , u8 * daddr , struct sk_buff * skb );
514
514
515
515
void ipoib_mcast_restart_task (struct work_struct * work );
516
- int ipoib_mcast_start_thread (struct net_device * dev );
516
+ void ipoib_mcast_start_thread (struct net_device * dev );
517
517
int ipoib_mcast_stop_thread (struct net_device * dev );
518
518
519
519
void ipoib_mcast_dev_down (struct net_device * dev );
Original file line number Diff line number Diff line change @@ -755,20 +755,20 @@ void ipoib_pkey_dev_check_presence(struct net_device *dev)
755
755
set_bit (IPOIB_PKEY_ASSIGNED , & priv -> flags );
756
756
}
757
757
758
- int ipoib_ib_dev_up (struct net_device * dev )
758
+ void ipoib_ib_dev_up (struct net_device * dev )
759
759
{
760
760
struct ipoib_dev_priv * priv = netdev_priv (dev );
761
761
762
762
ipoib_pkey_dev_check_presence (dev );
763
763
764
764
if (!test_bit (IPOIB_PKEY_ASSIGNED , & priv -> flags )) {
765
765
ipoib_dbg (priv , "PKEY is not assigned.\n" );
766
- return 0 ;
766
+ return ;
767
767
}
768
768
769
769
set_bit (IPOIB_FLAG_OPER_UP , & priv -> flags );
770
770
771
- return ipoib_mcast_start_thread (dev );
771
+ ipoib_mcast_start_thread (dev );
772
772
}
773
773
774
774
void ipoib_ib_dev_down (struct net_device * dev )
Original file line number Diff line number Diff line change @@ -126,8 +126,7 @@ int ipoib_open(struct net_device *dev)
126
126
goto err_disable ;
127
127
}
128
128
129
- if (ipoib_ib_dev_up (dev ))
130
- goto err_stop ;
129
+ ipoib_ib_dev_up (dev );
131
130
132
131
if (!test_bit (IPOIB_FLAG_SUBINTERFACE , & priv -> flags )) {
133
132
struct ipoib_dev_priv * cpriv ;
@@ -150,9 +149,6 @@ int ipoib_open(struct net_device *dev)
150
149
151
150
return 0 ;
152
151
153
- err_stop :
154
- ipoib_ib_dev_stop (dev );
155
-
156
152
err_disable :
157
153
clear_bit (IPOIB_FLAG_ADMIN_UP , & priv -> flags );
158
154
Original file line number Diff line number Diff line change @@ -676,7 +676,7 @@ void ipoib_mcast_join_task(struct work_struct *work)
676
676
spin_unlock_irq (& priv -> lock );
677
677
}
678
678
679
- int ipoib_mcast_start_thread (struct net_device * dev )
679
+ void ipoib_mcast_start_thread (struct net_device * dev )
680
680
{
681
681
struct ipoib_dev_priv * priv = netdev_priv (dev );
682
682
unsigned long flags ;
@@ -686,8 +686,6 @@ int ipoib_mcast_start_thread(struct net_device *dev)
686
686
spin_lock_irqsave (& priv -> lock , flags );
687
687
__ipoib_mcast_schedule_join_thread (priv , NULL , 0 );
688
688
spin_unlock_irqrestore (& priv -> lock , flags );
689
-
690
- return 0 ;
691
689
}
692
690
693
691
int ipoib_mcast_stop_thread (struct net_device * dev )
You can’t perform that action at this time.
0 commit comments