Hello,
Robert Millan pisze:
Index: fs/sfs.c
===================================================================
--- fs/sfs.c (revision 1919)
+++ fs/sfs.c (working copy)
@@ -172,7 +172,8 @@
return grub_errno;
}
- for (i = 0; i < grub_be_to_cpu16 (tree->nodes); i++)
+ grub_uint16_t nodescount = grub_be_to_cpu16(tree->nodes);
+ for (i = nodescount - 1; i >= 0; i--)
nodescount is only used once; why adding a variable?
No particular reason. Feel free to correct it :)
Best regards,
Krzysztof
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel