Skip to content

Commit 507874c

Browse files
Colin Ian Kinghubcapsc
authored andcommitted
orangefs: Remove redundant initialization of variable ret
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]>
1 parent 64570fb commit 507874c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/orangefs/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ struct dentry *orangefs_mount(struct file_system_type *fst,
475475
const char *devname,
476476
void *data)
477477
{
478-
int ret = -EINVAL;
478+
int ret;
479479
struct super_block *sb = ERR_PTR(-EINVAL);
480480
struct orangefs_kernel_op_s *new_op;
481481
struct dentry *d = ERR_PTR(-EINVAL);

0 commit comments

Comments
 (0)