Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

RDMA/ipoib: Return void from ipoib_mcast_stop_thread()

The return value from ipoib_mcast_stop_thread() is always 0 - change it to
be void.

Link: https://lore.kernel.org/r/20200622092256.6931-1-kamalheib1@gmail.com
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>

authored by

Kamal Heib and committed by
Jason Gunthorpe
90cdff90 11708142

+2 -4
+1 -1
drivers/infiniband/ulp/ipoib/ipoib.h
··· 527 527 528 528 void ipoib_mcast_restart_task(struct work_struct *work); 529 529 void ipoib_mcast_start_thread(struct net_device *dev); 530 - int ipoib_mcast_stop_thread(struct net_device *dev); 530 + void ipoib_mcast_stop_thread(struct net_device *dev); 531 531 532 532 void ipoib_mcast_dev_down(struct net_device *dev); 533 533 void ipoib_mcast_dev_flush(struct net_device *dev);
+1 -3
drivers/infiniband/ulp/ipoib/ipoib_multicast.c
··· 680 680 spin_unlock_irqrestore(&priv->lock, flags); 681 681 } 682 682 683 - int ipoib_mcast_stop_thread(struct net_device *dev) 683 + void ipoib_mcast_stop_thread(struct net_device *dev) 684 684 { 685 685 struct ipoib_dev_priv *priv = ipoib_priv(dev); 686 686 687 687 ipoib_dbg_mcast(priv, "stopping multicast thread\n"); 688 688 689 689 cancel_delayed_work_sync(&priv->mcast_task); 690 - 691 - return 0; 692 690 } 693 691 694 692 static int ipoib_mcast_leave(struct net_device *dev, struct ipoib_mcast *mcast)