IB/ucm: Use stack variable 'devnum' in ib_ucm_add_one
authorAlexander Chiang <achiang@hp.com>
Tue, 2 Feb 2010 19:08:55 +0000 (19:08 +0000)
committerRoland Dreier <rolandd@cisco.com>
Wed, 24 Feb 2010 18:23:47 +0000 (10:23 -0800)
commitdd08f702dd773004b81aeddcd120b052a42710c3
treebfe2817d500fdfec86363f5a5da188d6c94b374c
parentd3f2c67f2d10675f45b0d9257269420e9f59aa1a
IB/ucm: Use stack variable 'devnum' in ib_ucm_add_one

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

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