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 0c337d8..efb1219 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,