]> git.baikalelectronics.ru Git - kernel.git/commit
IB/qib: Remove redundant assignment to ret
authorYang Li <yang.lee@linux.alibaba.com>
Thu, 29 Apr 2021 10:42:20 +0000 (18:42 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 30 Apr 2021 13:58:15 +0000 (10:58 -0300)
commit15a57e331fb7718090ca30c5b0e2c51841ff651c
tree7f6f69ab1caecfc3fec871ea04b793313f5a2467
parent2b2ac252c264813b1a4c8a5659d0306f2b47ae57
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/1619692940-104771-1-git-send-email-yang.lee@linux.alibaba.com
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/qib/qib_sd7220.c