ch_ktls: Remove redundant variable result
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Fri, 23 Apr 2021 09:52:23 +0000 (17:52 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Apr 2021 01:07:11 +0000 (18:07 -0700)
commitbf7d20cd51d7b6aa969e263b33805af6e147a70e
treeafac20d7c639c01ab5d3a606d733f5044634440e
parent5f6c2f536de648ac31564d8c413337ff4f7af93a
ch_ktls: Remove redundant variable result

Variable result 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/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c:1488:2:
warning: Value stored to 'pos' is never read
[clang-analyzer-deadcode.DeadStores].

drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c:876:3:
warning: Value stored to 'pos' is never read
[clang-analyzer-deadcode.DeadStores].

drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c:36:3:
warning: Value stored to 'start' is never read
[clang-analyzer-deadcode.DeadStores].

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c