Skip to content

Commit

Permalink
orangefs: Remove redundant initialization of variable ret
Browse files Browse the repository at this point in the history
The variable ret is being initialized with a value that is never read, it
is being updated later on. The assignment is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Mike Marshall <[email protected]>
  • Loading branch information
Colin Ian King authored and hubcapsc committed Oct 11, 2021
1 parent 64570fb commit 507874c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/orangefs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ struct dentry *orangefs_mount(struct file_system_type *fst,
const char *devname,
void *data)
{
int ret = -EINVAL;
int ret;
struct super_block *sb = ERR_PTR(-EINVAL);
struct orangefs_kernel_op_s *new_op;
struct dentry *d = ERR_PTR(-EINVAL);
Expand Down

0 comments on commit 507874c

Please sign in to comment.