diff mbox series

fuse: clean up redundant assignment

Message ID 20201126040313.141513-1-ruansy.fnst@cn.fujitsu.com (mailing list archive)
State New, archived
Headers show
Series fuse: clean up redundant assignment | expand

Commit Message

Ruan Shiyang Nov. 26, 2020, 4:03 a.m. UTC
The 'err' was assigned to -ENOMEM in just few lines above, no need to be
assigned again.

Signed-off-by: Shiyang Ruan <ruansy.fnst@cn.fujitsu.com>
---
 fs/fuse/dir.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Ruan Shiyang Dec. 14, 2020, 5:43 a.m. UTC | #1
Hi guys,

any ideas?


--
Thanks,
Ruan Shiyang.

On 2020/11/26 下午12:03, Shiyang Ruan wrote:
> The 'err' was assigned to -ENOMEM in just few lines above, no need to be
> assigned again.
> 
> Signed-off-by: Shiyang Ruan <ruansy.fnst@cn.fujitsu.com>
> ---
>   fs/fuse/dir.c | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c
> index ff7dbeb16f88..f28eb54517ff 100644
> --- a/fs/fuse/dir.c
> +++ b/fs/fuse/dir.c
> @@ -528,7 +528,6 @@ static int fuse_create_open(struct inode *dir, struct dentry *entry,
>   	if (!forget)
>   		goto out_err;
>   
> -	err = -ENOMEM;
>   	ff = fuse_file_alloc(fm);
>   	if (!ff)
>   		goto out_put_forget_req;
>
diff mbox series

Patch

diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c
index ff7dbeb16f88..f28eb54517ff 100644
--- a/fs/fuse/dir.c
+++ b/fs/fuse/dir.c
@@ -528,7 +528,6 @@  static int fuse_create_open(struct inode *dir, struct dentry *entry,
 	if (!forget)
 		goto out_err;
 
-	err = -ENOMEM;
 	ff = fuse_file_alloc(fm);
 	if (!ff)
 		goto out_put_forget_req;