Skip to content

Commit 90d6cf3

Browse files
Changcheng Dengmartinetd
authored andcommitted
fs: 9p: remove unneeded variable
Fix the following coccicheck review: ./fs/9p/vfs_file.c: 117: 5-8: Unneeded variable Remove unneeded variable used to store return value. Link: https://lkml.kernel.org/r/[email protected] Reported-by: Zeal Robot <[email protected]> Signed-off-by: Changcheng Deng <[email protected]> Signed-off-by: Dominique Martinet <[email protected]>
1 parent f274566 commit 90d6cf3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/9p/vfs_file.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ int v9fs_file_open(struct inode *inode, struct file *file)
114114

115115
static int v9fs_file_lock(struct file *filp, int cmd, struct file_lock *fl)
116116
{
117-
int res = 0;
118117
struct inode *inode = file_inode(filp);
119118

120119
p9_debug(P9_DEBUG_VFS, "filp: %p lock: %p\n", filp, fl);
@@ -124,7 +123,7 @@ static int v9fs_file_lock(struct file *filp, int cmd, struct file_lock *fl)
124123
invalidate_mapping_pages(&inode->i_data, 0, -1);
125124
}
126125

127-
return res;
126+
return 0;
128127
}
129128

130129
static int v9fs_file_do_lock(struct file *filp, int cmd, struct file_lock *fl)

0 commit comments

Comments
 (0)