IB/ipoib: Remove the unnecessary error check
authorZhu Yanjun <yanjun.zhu@oracle.com>
Thu, 19 Jan 2017 04:16:06 +0000 (23:16 -0500)
committerDoug Ledford <dledford@redhat.com>
Tue, 24 Jan 2017 21:22:24 +0000 (16:22 -0500)
commit5c37077fd025c0fa3aa3ab2e6b607d653a4fc604
tree205ce7dff6915f6bd880b41289abba0228247a81
parent3f9fade5e77da67f618ac766ce1a6ded1679fb1a
IB/ipoib: Remove the unnecessary error check

The function ipoib_mcast_start_thread/ipoib_ib_dev_up always return zero.
As such, in the function ipoib_open, err_stop will never be reached.
So remove this err_stop and change the return type of the function
ipoib_mcast_start_thread/ipoib_ib_dev_up to void.

Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/ipoib/ipoib.h
drivers/infiniband/ulp/ipoib/ipoib_ib.c
drivers/infiniband/ulp/ipoib/ipoib_main.c
drivers/infiniband/ulp/ipoib/ipoib_multicast.c