IB/hns: fix returnvar.cocci warnings
authorkbuild test robot <fengguang.wu@intel.com>
Tue, 25 Jul 2017 05:36:25 +0000 (13:36 +0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 28 Jul 2017 18:51:36 +0000 (14:51 -0400)
commit87809f83a4ba0bfe2b7f6b7d4611994fdbed8c8f
tree6728dfad17d668933edb642564248ceafc9717fa
parent3756c7f59a4538bb40d77a25221dc411cc7dd2e9
IB/hns: fix returnvar.cocci warnings

drivers/infiniband/hw/hns/hns_roce_hw_v1.c:2026:5-8: Unneeded variable: "ret". Return "0" on line 2046

 Remove unneeded variable used to store return value.

Generated by: scripts/coccinelle/misc/returnvar.cocci

Fixes: 7d1b6a678e0b ("IB/hns: Support compile test for hns RoCE driver")
CC: Matan Barak <matanb@mellanox.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_hw_v1.c