fuse: drop redundant initializer in process_init_limits()
Subsystems (2)
PATCH 1/1 fuse: drop redundant initializer in process_init_limits()
The local max_background variable was declared with a duplicated assignment (max_background = max_background = arg->max_background). Remove the redundant assignment.
Signed-off-by Li Wang <[email protected]>
--- fs/fuse/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/fuse/inode.c +1 -1
@@ -1246,7 +1246,7 @@ static void process_init_limits(struct fuse_conn *fc, struct fuse_init_out *arg)sanitize_global_limit (&max_user_congthresh);if (arg->max_background) { -unsigned int max_background = max_background = arg->max_background; +unsigned int max_background = arg->max_background;if (!cap_sys_admin && max_background > max_user_bgreq) max_background = max_user_bgreq;
Signature · 1 line
2.34.1
Miklos Szeredi
maintainerQuoted 6 lines · Li Wang
The local
max_backgroundvariable was declared with a duplicated assignment (max_background=max_background=arg->max_background). Remove the redundant assignment.Signed-off-by Li Wang <[email protected]>
Folded into original patch in for-next.
Thanks,
Miklos