diff options
author | Nathan Chancellor | 2018-09-21 00:24:59 +0200 |
---|---|---|
committer | David S. Miller | 2018-09-22 04:02:05 +0200 |
commit | 83b4768e1b6bd92a94b15ccb22762c686f5ede38 (patch) | |
tree | 7f8e477f87cbe38c74beb1e339b4196f8c226720 /drivers/spi | |
parent | net: neterion: vxge: Remove unnecessary parentheses (diff) | |
download | kernel-qcow2-linux-83b4768e1b6bd92a94b15ccb22762c686f5ede38.tar.gz kernel-qcow2-linux-83b4768e1b6bd92a94b15ccb22762c686f5ede38.tar.xz kernel-qcow2-linux-83b4768e1b6bd92a94b15ccb22762c686f5ede38.zip |
bna: Remove unnecessary self assignment
Clang warns when a variable is assigned to itself.
drivers/net/ethernet/brocade/bna/bna_enet.c:1800:9: warning: explicitly
assigning value of variable of type 'int' to itself [-Wself-assign]
for (i = i; i < (bna->ioceth.attr.num_ucmac * 2); i++)
~ ^ ~
drivers/net/ethernet/brocade/bna/bna_enet.c:1835:9: warning: explicitly
assigning value of variable of type 'int' to itself [-Wself-assign]
for (i = i; i < (bna->ioceth.attr.num_mcmac * 2); i++)
~ ^ ~
2 warnings generated.
Link: https://github.com/ClangBuiltLinux/linux/issues/110
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/spi')
0 files changed, 0 insertions, 0 deletions