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>
This commit is contained in:
Colin Ian King 2019-07-28 19:04:07 +01:00 committed by Mike Marshall
parent c42293a951
commit e6b998ab62
1 changed files with 1 additions and 1 deletions

View File

@ -940,7 +940,7 @@ out:
int orangefs_getattr(const struct path *path, struct kstat *stat, int orangefs_getattr(const struct path *path, struct kstat *stat,
u32 request_mask, unsigned int flags) u32 request_mask, unsigned int flags)
{ {
int ret = -ENOENT; int ret;
struct inode *inode = path->dentry->d_inode; struct inode *inode = path->dentry->d_inode;
gossip_debug(GOSSIP_INODE_DEBUG, gossip_debug(GOSSIP_INODE_DEBUG,