diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-07-28 20:04:07 +0200 |
---|---|---|
committer | Mike Marshall <hubcap@omnibond.com> | 2019-09-12 20:17:16 +0200 |
commit | e6b998ab62be29eb244fdb0fa41dcb5a8ad065f2 (patch) | |
tree | 4ec8c6c03faf515d620a3e5ce13a0e60753f0d02 | |
parent | orangefs: Add octal zero prefix (diff) | |
download | linux-e6b998ab62be29eb244fdb0fa41dcb5a8ad065f2.tar.xz linux-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>
-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, |