diff options
author | zhong jiang <zhongjiang@huawei.com> | 2018-08-07 07:20:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-08-08 12:40:44 -0400 |
commit | 5a0c6cee1767a551dacfa6e266ac4795bba0555e (patch) | |
tree | 2b36ec56ad8e2d9492556a5663533c28a5f1d4de | |
parent | fb3b467e067385748445c5295fdbde548b631cb2 (diff) |
net:mod: remove unneeded variable 'ret' in init_p9
The ret is modified after initalization, so just remove it and
return 0.
Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/9p/mod.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/9p/mod.c b/net/9p/mod.c index eb9777f05755..253ba824a325 100644 --- a/net/9p/mod.c +++ b/net/9p/mod.c | |||
@@ -171,13 +171,11 @@ void v9fs_put_trans(struct p9_trans_module *m) | |||
171 | */ | 171 | */ |
172 | static int __init init_p9(void) | 172 | static int __init init_p9(void) |
173 | { | 173 | { |
174 | int ret = 0; | ||
175 | |||
176 | p9_error_init(); | 174 | p9_error_init(); |
177 | pr_info("Installing 9P2000 support\n"); | 175 | pr_info("Installing 9P2000 support\n"); |
178 | p9_trans_fd_init(); | 176 | p9_trans_fd_init(); |
179 | 177 | ||
180 | return ret; | 178 | return 0; |
181 | } | 179 | } |
182 | 180 | ||
183 | /** | 181 | /** |