OSDN Git Service

RDMA/hns: Remove set but not used variable 'fclr_write_fail_flag'
authorYueHaibing <yuehaibing@huawei.com>
Wed, 3 Jul 2019 03:10:21 +0000 (03:10 +0000)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 3 Jul 2019 17:52:15 +0000 (14:52 -0300)
commit6044414fa849e14fa0de60a75e3f85ea048c89db
treed94bf872a210c8de194f7d882f27e6f3a4f0bfa0
parent2e67e775845373905d2c2aecb9062c2c4352a535
RDMA/hns: Remove set but not used variable 'fclr_write_fail_flag'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/infiniband/hw/hns/hns_roce_hw_v2.c: In function 'hns_roce_function_clear':
drivers/infiniband/hw/hns/hns_roce_hw_v2.c:1135:7: warning:
 variable 'fclr_write_fail_flag' set but not used [-Wunused-but-set-variable]

It is never used, so can be removed.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c