Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115388
b: refs/heads/master
c: c9f6cde
h: refs/heads/master
v: v3
  • Loading branch information
Denis V. Lunev authored and Trond Myklebust committed Oct 7, 2008
1 parent 5cef5d1 commit 9c5911a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fd08d7e9d196ca49afcce0181f1f0ca68f241aa2
refs/heads/master: c9f6cde6e26ef98ee9c4b6288b126ac9c580d88b
12 changes: 4 additions & 8 deletions trunk/net/sunrpc/xprt.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,10 @@ int xprt_register_transport(struct xprt_class *transport)
goto out;
}

result = -EINVAL;
if (try_module_get(THIS_MODULE)) {
list_add_tail(&transport->list, &xprt_list);
printk(KERN_INFO "RPC: Registered %s transport module.\n",
transport->name);
result = 0;
}
list_add_tail(&transport->list, &xprt_list);
printk(KERN_INFO "RPC: Registered %s transport module.\n",
transport->name);
result = 0;

out:
spin_unlock(&xprt_list_lock);
Expand Down Expand Up @@ -143,7 +140,6 @@ int xprt_unregister_transport(struct xprt_class *transport)
"RPC: Unregistered %s transport module.\n",
transport->name);
list_del_init(&transport->list);
module_put(THIS_MODULE);
goto out;
}
}
Expand Down

0 comments on commit 9c5911a

Please sign in to comment.