diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-07-28 19:04:07 +0100 |
---|---|---|
committer | Mike Marshall <hubcap@omnibond.com> | 2019-09-12 14:17:16 -0400 |
commit | e6b998ab62be29eb244fdb0fa41dcb5a8ad065f2 (patch) | |
tree | 4ec8c6c03faf515d620a3e5ce13a0e60753f0d02 /fs/orangefs | |
parent | c42293a951bdf315242dcf4cc673bf111c7632d8 (diff) | |
download | linux-rt-e6b998ab62be29eb244fdb0fa41dcb5a8ad065f2.tar.gz |
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.c | 2 |
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, |