diff options
author | 2017-01-12 02:39:01 -0500 | |
---|---|---|
committer | 2017-01-24 16:20:37 -0500 | |
commit | dfc0e5550664a727a59921db7d9e7a41c21d03bb (patch) | |
tree | 3282b29d46a763fdf34dddc4501734fbba1a4999 /drivers/infiniband/ulp/ipoib/ipoib.h | |
parent | i40iw: fix some indenting in i40iw_sc_vsi_init() (diff) | |
download | linux-dfc0e5550664a727a59921db7d9e7a41c21d03bb.tar.gz linux-dfc0e5550664a727a59921db7d9e7a41c21d03bb.tar.bz2 linux-dfc0e5550664a727a59921db7d9e7a41c21d03bb.zip |
IB/ipoib: function interface change
The ipoib_ib_dev_down/ipoib_ib_dev_stop return zero unconditionally
and the callers never check the returned values,
change the return type to void and remove the redundant return values.
Reviewed-by: Shan Hai <shan.hai@oracle.com>
Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/ulp/ipoib/ipoib.h')
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib.h b/drivers/infiniband/ulp/ipoib/ipoib.h index f5680642960a..6dac79454708 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib.h +++ b/drivers/infiniband/ulp/ipoib/ipoib.h @@ -501,8 +501,8 @@ void ipoib_ib_dev_cleanup(struct net_device *dev); int ipoib_ib_dev_open(struct net_device *dev); int ipoib_ib_dev_up(struct net_device *dev); -int ipoib_ib_dev_down(struct net_device *dev); -int ipoib_ib_dev_stop(struct net_device *dev); +void ipoib_ib_dev_down(struct net_device *dev); +void ipoib_ib_dev_stop(struct net_device *dev); void ipoib_pkey_dev_check_presence(struct net_device *dev); int ipoib_dev_init(struct net_device *dev, struct ib_device *ca, int port); |