]> Git Repo - linux.git/commit
IB/qib: Remove redundant assignment to ret
authorYang Li <[email protected]>
Thu, 29 Apr 2021 10:42:20 +0000 (18:42 +0800)
committerJason Gunthorpe <[email protected]>
Fri, 30 Apr 2021 13:58:15 +0000 (10:58 -0300)
commit6da7bda36388ae00822f732c11febfe2ebbb5544
tree7f6f69ab1caecfc3fec871ea04b793313f5a2467
parent6cc9e215eb277513719c32b9ba40e5012b02db57
IB/qib: Remove redundant assignment to ret

Variable 'ret' is set to zero but this value is never read as it is
overwritten with a new value later on, hence it is a redundant assignment
and can be removed.

Clean up the following clang-analyzer warning:

drivers/infiniband/hw/qib/qib_sd7220.c:690:2: warning: Value stored to
'ret' is never read [clang-analyzer-deadcode.DeadStores]

Link: https://lore.kernel.org/r/[email protected]
Reported-by: Abaci Robot <[email protected]>
Signed-off-by: Yang Li <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
drivers/infiniband/hw/qib/qib_sd7220.c
This page took 0.060562 seconds and 4 git commands to generate.