IB/ipath: Use bitmap_weight()
authorAkinobu Mita <akinobu.mita@gmail.com>
Wed, 9 Dec 2009 18:05:28 +0000 (10:05 -0800)
committerRoland Dreier <rolandd@cisco.com>
Wed, 9 Dec 2009 18:05:28 +0000 (10:05 -0800)
commit598cb6f327c99ceaf81c45c32504669b2028712b
tree3c5704f6ea3fe19d300914ef1f680875ea8f7b77
parent91d3f9bacdb4950d2f79fe2ba296aa249f60d06c
IB/ipath: Use bitmap_weight()

Use bitmap_weight() instead of finding all set bits in bitmap by hand.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Ralph Campbell <infinipath@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_driver.c