]> bbs.cooldavid.org Git - net-next-2.6.git/commit
Staging: batman-adv: cleanup: change test for end of array
authorDan Carpenter <error27@gmail.com>
Fri, 7 May 2010 19:47:16 +0000 (21:47 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 11 May 2010 20:42:38 +0000 (13:42 -0700)
commitdb315014ff8148e73d10e927d14c962d2cabd370
tree9aa029af1e74a19e2544d37a097aff4cb5cc61f5
parent56c341d7af78f6766238725f79a1773aca942795
Staging: batman-adv: cleanup: change test for end of array

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.

Andrew Lunn suggested that I also remove all the hard coded references
to 256 so I have done that as well.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/batman-adv/device.c