]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc2a63ed14a291c1600fed5fc6ffacedbe8bab752
tree487822c3e81ff3762398d1373b9db2fd5c4d108f
parentc92f91cac225f0f933fbfa97e14edab63628bbdf
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