]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
orangefs: remove redundant assignment to err
authorColin Ian King <colin.king@canonical.com>
Sun, 28 Jul 2019 18:04:07 +0000 (19:04 +0100)
committerMike Marshall <hubcap@omnibond.com>
Thu, 12 Sep 2019 18:17:16 +0000 (14:17 -0400)
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>
fs/orangefs/inode.c

index 0c337d8bdaabcd799c58e19190efc21b96c71d74..efb12197da181fb5eff1d150e2bcf825e5bcfe79 100644 (file)
@@ -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,