From: Patrick Kelle Date: Thu, 1 Dec 2011 17:54:46 +0000 (-0500) Subject: icplus: mdio_write(), remove unnecessary for loop X-Git-Tag: v3.3-rc1~182^2~384 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7d75960ea74e524d75ba8b067523471f39a7bf3;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed