]> git.baikalelectronics.ru Git - kernel.git/commit
pNFS/NFSv4: Remove redundant initialization of 'rd_size'
authorYang Li <yang.lee@linux.alibaba.com>
Wed, 12 May 2021 09:20:04 +0000 (17:20 +0800)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 20 May 2021 16:17:08 +0000 (12:17 -0400)
commit4339ebb7e1bf341c3d4dd3516e0c855ff9476c33
tree53e0d5b259e6c3cedb11e9321141e0744605ec5c
parentba8b7f4b2f235bbe8965a20fd3a369da5e36bf17
pNFS/NFSv4: Remove redundant initialization of 'rd_size'

Variable 'rd_size' is being initialized however
this value is never read as 'rd_size' is assigned
a new value in for statement. Remove the redundant
assignment.

Clean up clang warning:

fs/nfs/pnfs.c:2681:6: warning: Value stored to 'rd_size' during its
initialization is never read [clang-analyzer-deadcode.DeadStores]

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/pnfs.c