]> git.baikalelectronics.ru Git - kernel.git/commit
mpls: Remove redundant assignment to err
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Tue, 27 Apr 2021 10:30:56 +0000 (18:30 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Apr 2021 21:17:00 +0000 (14:17 -0700)
commit1b958909f6ee8438a2caf4f04e6038ab73c82807
treea85ad797c98c4e9458692efb00aa697c30d76f4e
parent8ae518e821ed8ac77635d47e8aecee7b4b023743
mpls: Remove redundant assignment to err

Variable err is set to -ENOMEM 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.

Cleans up the following clang-analyzer warning:

net/mpls/af_mpls.c:1022:2: warning: Value stored to 'err' 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>
net/mpls/af_mpls.c