IB/hfi1: Remove redundant variable rcd
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Sun, 25 Apr 2021 10:31:36 +0000 (18:31 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 27 Apr 2021 18:18:25 +0000 (15:18 -0300)
commit2d085ee1728e6ed52f63f221a8ac44cb744e7a84
treeef53cad097a486db3e21e7783ea444c0722fbbc5
parentc6c11ad3ab9fe5eb279479879e3461da99f6fdf0
IB/hfi1: Remove redundant variable rcd

The variable rcd is being assigned a value from a calculation however the
variable is never read, so this redundant variable can be removed.

Cleans up the following clang-analyzer warning:

drivers/infiniband/hw/hfi1/affinity.c:986:3: warning: Value stored to
'rcd' is never read [clang-analyzer-deadcode.DeadStores].

Link: https://lore.kernel.org/r/1619346696-46300-1-git-send-email-jiapeng.chong@linux.alibaba.com
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hfi1/affinity.c