Skip to content

Commit

Permalink
sunrpc: Remove unnecessary variable
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Anna Schumaker <[email protected]>
  • Loading branch information
musicakc authored and amschuma-ntap committed Sep 19, 2016
1 parent 3be7988 commit 2813b62
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/sunrpc/clnt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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,
Expand Down

0 comments on commit 2813b62

Please sign in to comment.