Skip to content

Commit

Permalink
IB/srpt: Use DEFINE_SPINLOCK()/LIST_HEAD()
Browse files Browse the repository at this point in the history
Signed-off-by: Roland Dreier <roland@purestorage.com>
  • Loading branch information
Roland Dreier committed Feb 2, 2012
1 parent 18d3e0d commit 486d8b9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions drivers/infiniband/ulp/srpt/ib_srpt.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ MODULE_LICENSE("Dual BSD/GPL");
*/

static u64 srpt_service_guid;
static spinlock_t srpt_dev_lock; /* Protects srpt_dev_list. */
static struct list_head srpt_dev_list; /* List of srpt_device structures. */
static DEFINE_SPINLOCK(srpt_dev_lock); /* Protects srpt_dev_list. */
static LIST_HEAD(srpt_dev_list); /* List of srpt_device structures. */

static unsigned srp_max_req_size = DEFAULT_MAX_REQ_SIZE;
module_param(srp_max_req_size, int, 0444);
Expand Down Expand Up @@ -4010,9 +4010,6 @@ static int __init srpt_init_module(void)
goto out;
}

spin_lock_init(&srpt_dev_lock);
INIT_LIST_HEAD(&srpt_dev_list);

ret = -ENODEV;
srpt_target = target_fabric_configfs_init(THIS_MODULE, "srpt");
if (!srpt_target) {
Expand Down

0 comments on commit 486d8b9

Please sign in to comment.