]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
IB/mthca: Clean up mthca array index mask
authorRoland Dreier <rolandd@cisco.com>
Thu, 3 Aug 2006 16:44:22 +0000 (09:44 -0700)
committerRoland Dreier <rolandd@cisco.com>
Thu, 3 Aug 2006 16:44:22 +0000 (09:44 -0700)
commit69e9fbb460fa8766428960439841ffcf565032c1
tree95d3e8f4947a438b9b7513d56b1ea622bcbe095d
parentbf74c7479ef47652005a2418eeb0d867451690da
IB/mthca: Clean up mthca array index mask

Define a constant MTHCA_ARRAY_MASK to replace repeated uses of
(PAGE_SIZE / sizeof (void *) - 1) in mthca array code.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_allocator.c