Home
last modified time | relevance | path

Searched hist:"83 b4768e1b6bd92a94b15ccb22762c686f5ede38" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/net/ethernet/brocade/bna/
H A Dbna_enet.cdiff 83b4768e1b6bd92a94b15ccb22762c686f5ede38 Thu Sep 20 17:24:59 CDT 2018 Nathan Chancellor <natechancellor@gmail.com> 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>