Skip to content

Commit e1b4376

Browse files
Colin Ian Kinghubcapsc
authored andcommitted
orangefs: remove redundant pointer orangefs_inode
Pointer orangefs_inode is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable 'orangefs_inode' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
1 parent 8bf782f commit e1b4376

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

fs/orangefs/inode.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,6 @@ int orangefs_getattr(const struct path *path, struct kstat *stat,
251251
{
252252
int ret = -ENOENT;
253253
struct inode *inode = path->dentry->d_inode;
254-
struct orangefs_inode_s *orangefs_inode = NULL;
255254

256255
gossip_debug(GOSSIP_INODE_DEBUG,
257256
"orangefs_getattr: called on %pd\n",
@@ -262,8 +261,6 @@ int orangefs_getattr(const struct path *path, struct kstat *stat,
262261
generic_fillattr(inode, stat);
263262

264263
/* override block size reported to stat */
265-
orangefs_inode = ORANGEFS_I(inode);
266-
267264
if (request_mask & STATX_SIZE)
268265
stat->result_mask = STATX_BASIC_STATS;
269266
else

0 commit comments

Comments
 (0)