]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7f3ce06536c7d1dd8f6bc3ba319ead9694e31e9e
treee9bd287abadd5bf983cf261d6fff6a6eb0e35f22
parentb325541ddf12c4e3348972fad844a8055ccbf370
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