Skip to content

Commit e6b998a

Browse files
Colin Ian Kinghubcapsc
authored andcommitted
orangefs: remove redundant assignment to err
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>
1 parent c42293a commit e6b998a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/orangefs/inode.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ int orangefs_setattr(struct dentry *dentry, struct iattr *iattr)
940940
int orangefs_getattr(const struct path *path, struct kstat *stat,
941941
u32 request_mask, unsigned int flags)
942942
{
943-
int ret = -ENOENT;
943+
int ret;
944944
struct inode *inode = path->dentry->d_inode;
945945

946946
gossip_debug(GOSSIP_INODE_DEBUG,

0 commit comments

Comments
 (0)