]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Remove redundant assignment to err
authorYang Li <yang.lee@linux.alibaba.com>
Thu, 29 Apr 2021 10:38:25 +0000 (18:38 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Apr 2021 22:52:07 +0000 (15:52 -0700)
commit3ba859b4cc6ce6622e6a80383a43faacaebcf278
treec5754d7a69b0b4fb87201f88443ca89a88287719
parentb0b0ab592e194893e5254f025001da6495f45b3e
bnx2x: Remove redundant assignment to err

Variable 'err' is set to -EIO 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/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c:1195:2: warning: Value
stored to 'err' 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: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c