[patch] batman: cleanup: change test for end of array

Andrew Lunn andrew at lunn.ch
Sun Mar 28 12:20:51 UTC 2010


On Sun, Mar 28, 2010 at 02:47:39PM +0300, Dan Carpenter wrote:
> The code here is testing to see if "i" is passed the end of the array.
> The original code works probably, but it's not the cleanest way.

Even better would be to use ARRAY_SIZE and remove all the hardcoded
256's.

	Andrew



More information about the devel mailing list