]> Git Repo - J-linux.git/commitdiff
orangefs: remove redundant assignment to err
authorColin Ian King <[email protected]>
Sun, 28 Jul 2019 18:04:07 +0000 (19:04 +0100)
committerMike Marshall <[email protected]>
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 <[email protected]>
Signed-off-by: Mike Marshall <[email protected]>
fs/orangefs/inode.c

index 0c337d8bdaabcd799c58e19190efc21b96c71d74..efb12197da181fb5eff1d150e2bcf825e5bcfe79 100644 (file)
@@ -940,7 +940,7 @@ out:
 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,
This page took 0.059028 seconds and 4 git commands to generate.