IB/uverbs: Use stack variable 'devnum' in ib_uverbs_add_one
authorAlexander Chiang <achiang@hp.com>
Tue, 2 Feb 2010 19:07:59 +0000 (19:07 +0000)
committerRoland Dreier <rolandd@cisco.com>
Wed, 24 Feb 2010 18:23:40 +0000 (10:23 -0800)
commit38707980c42c58e2d00b34ecaa40cf5207bdd9d1
tree4cfaea86bc627a219313a2905f89cbab19552948
parent2a72f212263701b927559f6850446421d5906c41
IB/uverbs: Use stack variable 'devnum' in ib_uverbs_add_one

This change is not useful by itself, but it sets us up for a future
change that allows us to dynamically allocate device numbers in case
we have more than IB_UVERBS_MAX_DEVICES in the system.

Signed-off-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/uverbs_main.c