IB/ipoib: Remove unnecessary returned value check
authorZhu Yanjun <yanjun.zhu@oracle.com>
Thu, 5 Jan 2017 08:56:08 +0000 (03:56 -0500)
committerDoug Ledford <dledford@redhat.com>
Tue, 24 Jan 2017 21:20:37 +0000 (16:20 -0500)
commitf7534f45dcbc1a2ecb486b019db0443188e957d6
treee9bd287abadd5bf983cf261d6fff6a6eb0e35f22
parent506f71d1811aaf2d6a6c0bd132ceba29f5c14f3e
IB/ipoib: Remove unnecessary returned value check

In the function ipoib_set_dev_features, the returned value is always 0.
As such, it is not necessary to check the returned value.
This is not a bug. It is a trivial problem.

Reviewed-by: Guanglei Li <guanglei.li@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>
drivers/infiniband/ulp/ipoib/ipoib.h
drivers/infiniband/ulp/ipoib/ipoib_main.c
drivers/infiniband/ulp/ipoib/ipoib_vlan.c