]> git.baikalelectronics.ru Git - kernel.git/commit
bna: Remove unnecessary self assignment
authorNathan Chancellor <natechancellor@gmail.com>
Thu, 20 Sep 2018 22:24:59 +0000 (15:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Sep 2018 02:02:05 +0000 (19:02 -0700)
commitfecf9e15ba944a988b1d6e118367e4c3f78f1e53
tree7f8e477f87cbe38c74beb1e339b4196f8c226720
parenta487d1be70e75dcc5e218b5d0f6d0ae37a126af5
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>
drivers/net/ethernet/brocade/bna/bna_enet.c