projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb3b467
)
net:mod: remove unneeded variable 'ret' in init_p9
author
zhong jiang
<zhongjiang@huawei.com>
Tue, 7 Aug 2018 11:20:09 +0000
(19:20 +0800)
committer
David S. Miller
<davem@davemloft.net>
Wed, 8 Aug 2018 16:40:44 +0000
(09:40 -0700)
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>
net/9p/mod.c
patch
|
blob
|
history
diff --git
a/net/9p/mod.c
b/net/9p/mod.c
index eb9777f0575565cb7144f56edeed2a5f91912cf7..253ba824a325d903931d522b997ad9ab07708e41 100644
(file)
--- a/
net/9p/mod.c
+++ b/
net/9p/mod.c
@@
-171,13
+171,11
@@
void v9fs_put_trans(struct p9_trans_module *m)
*/
static int __init init_p9(void)
{
- int ret = 0;
-
p9_error_init();
pr_info("Installing 9P2000 support\n");
p9_trans_fd_init();
- return
ret
;
+ return
0
;
}
/**