OSDN Git Service

IB/qib: Remove unused variable ret
authorZou Wei <zou_wei@huawei.com>
Mon, 13 Apr 2020 02:42:04 +0000 (10:42 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 14 Apr 2020 19:34:17 +0000 (16:34 -0300)
commit4f953089111d45d0e654080a1f2edec39f197c93
tree487822c3e81ff3762398d1373b9db2fd5c4d108f
parent255e636df4133507254da13137e8d8524ef0794f
IB/qib: Remove unused variable ret

This patch fixes below warnings reported by coccicheck

drivers/infiniband/hw/qib/qib_iba7322.c:6878:8-11:
Unneeded variable: "ret". Return "0" on line 6907
drivers/infiniband/hw/qib/qib_iba7322.c:2378:5-8:
Unneeded variable: "ret". Return "0" on line 2513

Link: https://lore.kernel.org/r/1586745724-107477-1-git-send-email-zou_wei@huawei.com
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/qib/qib_iba7322.c