summaryrefslogtreecommitdiffstats
path: root/net/sunrpc
diff options
context:
space:
mode:
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>2016-08-08 14:43:49 +0530
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2016-09-19 13:08:35 -0400
commit2813b626e395f9de1ca0549c1c7d2217c1ce80ea (patch)
treec1302a0ad1c3d85157e063d91c3403aeb00ae954 /net/sunrpc
parent3be7988674ab33565700a37b210f502563d932e6 (diff)
downloadlinux-0-day-2813b626e395f9de1ca0549c1c7d2217c1ce80ea.tar.gz
linux-0-day-2813b626e395f9de1ca0549c1c7d2217c1ce80ea.tar.xz
sunrpc: Remove unnecessary variable
The variable `err` is not used anywhere and just returns the predefined value `0` at the end of the function. Hence, remove the variable and return 0 explicitly. Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/sunrpc')
-rw-r--r--net/sunrpc/clnt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index 66f23b376fa04..75078bbf261a2 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -184,7 +184,6 @@ static int __rpc_clnt_handle_event(struct rpc_clnt *clnt, unsigned long event,
struct super_block *sb)
{
struct dentry *dentry;
- int err = 0;
switch (event) {
case RPC_PIPEFS_MOUNT:
@@ -201,7 +200,7 @@ static int __rpc_clnt_handle_event(struct rpc_clnt *clnt, unsigned long event,
printk(KERN_ERR "%s: unknown event: %ld\n", __func__, event);
return -ENOTSUPP;
}
- return err;
+ return 0;
}
static int __rpc_pipefs_event(struct rpc_clnt *clnt, unsigned long event,