summaryrefslogtreecommitdiffstats
path: root/fs/orangefs
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-07-28 19:04:07 +0100
committerMike Marshall <hubcap@omnibond.com>2019-09-12 14:17:16 -0400
commite6b998ab62be29eb244fdb0fa41dcb5a8ad065f2 (patch)
tree4ec8c6c03faf515d620a3e5ce13a0e60753f0d02 /fs/orangefs
parentc42293a951bdf315242dcf4cc673bf111c7632d8 (diff)
downloadlinux-stable-e6b998ab62be29eb244fdb0fa41dcb5a8ad065f2.tar.gz
linux-stable-e6b998ab62be29eb244fdb0fa41dcb5a8ad065f2.tar.bz2
linux-stable-e6b998ab62be29eb244fdb0fa41dcb5a8ad065f2.zip
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>
Diffstat (limited to 'fs/orangefs')
-rw-r--r--fs/orangefs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/orangefs/inode.c b/fs/orangefs/inode.c
index 0c337d8bdaab..efb12197da18 100644
--- a/fs/orangefs/inode.c
+++ b/fs/orangefs/inode.c
@@ -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,