flex_array: remove unneeded index calculation
authorJonathan Corbet <corbet@lwn.net>
Tue, 4 Aug 2009 19:35:17 +0000 (13:35 -0600)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 4 Aug 2009 22:33:46 +0000 (15:33 -0700)
commit07868201070d87484bd00610a4921e879be78746
tree262e32d1261bf05280a9711f6aa951550343979e
parenta40694a38a745af0dd7d8b796597ada1dd6caeb7
flex_array: remove unneeded index calculation

flex_array_get() calculates an index value, then drops it on the floor;
simply remove it.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Acked-by: Dave Hansen <dave@linux.vnet.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/flex_array.c