diff options
author | Prem Karat <prem.karat@linux.vnet.ibm.com> | 2011-05-06 09:05:32 -0400 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@gmail.com> | 2011-07-23 10:32:49 -0400 |
commit | 4d63055fa9657aa402da25575045c23f37c3da05 (patch) | |
tree | 6d85570570026eed3cbb50a1ab835bbe686e326b /net/9p/mod.c | |
parent | a2dd43bb0d7b9ce28f8a39254c25840c0730498e (diff) |
fs/9p: Clean-up get_protocol_version() to use strcmp
Signed-off-by: Prem Karat <prem.karat@linux.vnet.ibm.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'net/9p/mod.c')
-rw-r--r-- | net/9p/mod.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/9p/mod.c b/net/9p/mod.c index 72c398275051..2664d1292291 100644 --- a/net/9p/mod.c +++ b/net/9p/mod.c | |||
@@ -80,14 +80,14 @@ EXPORT_SYMBOL(v9fs_unregister_trans); | |||
80 | * @name: string identifying transport | 80 | * @name: string identifying transport |
81 | * | 81 | * |
82 | */ | 82 | */ |
83 | struct p9_trans_module *v9fs_get_trans_by_name(const substring_t *name) | 83 | struct p9_trans_module *v9fs_get_trans_by_name(char *s) |
84 | { | 84 | { |
85 | struct p9_trans_module *t, *found = NULL; | 85 | struct p9_trans_module *t, *found = NULL; |
86 | 86 | ||
87 | spin_lock(&v9fs_trans_lock); | 87 | spin_lock(&v9fs_trans_lock); |
88 | 88 | ||
89 | list_for_each_entry(t, &v9fs_trans_list, list) | 89 | list_for_each_entry(t, &v9fs_trans_list, list) |
90 | if (strncmp(t->name, name->from, name->to-name->from) == 0 && | 90 | if (strcmp(t->name, s) == 0 && |
91 | try_module_get(t->owner)) { | 91 | try_module_get(t->owner)) { |
92 | found = t; | 92 | found = t; |
93 | break; | 93 | break; |