diff options
| author | 2011-12-01 12:54:46 -0500 | |
|---|---|---|
| committer | 2011-12-01 12:54:46 -0500 | |
| commit | d7d75960ea74e524d75ba8b067523471f39a7bf3 (patch) | |
| tree | f740896af0ebbc67c4fdb4b7aa294823dae86db2 /include/linux | |
| parent | net: net_device flags is an unsigned int (diff) | |
| download | linux-dev-d7d75960ea74e524d75ba8b067523471f39a7bf3.tar.xz linux-dev-d7d75960ea74e524d75ba8b067523471f39a7bf3.zip | |
icplus: mdio_write(), remove unnecessary for loop
At this point the variable j is always set to 7 and the code within
the loop has to run only once anyway.
As suggested by David Miller:
"You can simply this even further since p[7] is what is used here,
and this means len is one, the inner loop therefore executes only
once, and the p[7].field value is not used (it's zero in the table)
and the write to it is completely thrown away."
Signed-off-by: Patrick Kelle <patrick.kelle81@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
