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_ib_dev_stop()

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

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

authored by

Kamal Heib and committed by
Jason Gunthorpe
95a5631f 3506c37d

+2 -4
+1 -1
drivers/infiniband/ulp/ipoib/ipoib.h
··· 515 515 516 516 int ipoib_ib_dev_open_default(struct net_device *dev); 517 517 int ipoib_ib_dev_open(struct net_device *dev); 518 - int ipoib_ib_dev_stop(struct net_device *dev); 518 + void ipoib_ib_dev_stop(struct net_device *dev); 519 519 void ipoib_ib_dev_up(struct net_device *dev); 520 520 void ipoib_ib_dev_down(struct net_device *dev); 521 521 int ipoib_ib_dev_stop_default(struct net_device *dev);
+1 -3
drivers/infiniband/ulp/ipoib/ipoib_ib.c
··· 846 846 return 0; 847 847 } 848 848 849 - int ipoib_ib_dev_stop(struct net_device *dev) 849 + void ipoib_ib_dev_stop(struct net_device *dev) 850 850 { 851 851 struct ipoib_dev_priv *priv = ipoib_priv(dev); 852 852 ··· 854 854 855 855 clear_bit(IPOIB_FLAG_INITIALIZED, &priv->flags); 856 856 ipoib_flush_ah(dev); 857 - 858 - return 0; 859 857 } 860 858 861 859 int ipoib_ib_dev_open_default(struct net_device *dev)