IB/umad: Use stack variable 'devnum' in ib_umad_init_port
authorAlexander Chiang <achiang@hp.com>
Tue, 2 Feb 2010 19:08:35 +0000 (19:08 +0000)
committerRoland Dreier <rolandd@cisco.com>
Wed, 24 Feb 2010 18:23:44 +0000 (10:23 -0800)
commitd451b8df9f7e572ea77f976745f424dd1dae8aeb
tree92d00c446dbfe63d61d3a052b16227908f9c4ae1
parent6aa2a86ec430fb1ae739bd065d7ea6596997a2cf
IB/umad: Use stack variable 'devnum' in ib_umad_init_port

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_UMAD_MAX_PORTS in the system.

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