Skip to content

Commit

Permalink
orangefs: remove redundant assignment to err
Browse files Browse the repository at this point in the history
Variable err is initialized to a value that is never read and it
is re-assigned later.  The initialization is redundant and can
be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
  • Loading branch information
Colin Ian King authored and hubcapsc committed Sep 12, 2019
1 parent c42293a commit e6b998a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/orangefs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ int orangefs_setattr(struct dentry *dentry, struct iattr *iattr)
int orangefs_getattr(const struct path *path, struct kstat *stat,
u32 request_mask, unsigned int flags)
{
int ret = -ENOENT;
int ret;
struct inode *inode = path->dentry->d_inode;

gossip_debug(GOSSIP_INODE_DEBUG,
Expand Down

0 comments on commit e6b998a

Please sign in to comment.