Skip to contentSkip to conversation

fuse: drop redundant initializer in process_init_limits()

PATCH In review Li Wang 2 participants 2 messages May 22 – Jun 10

Subsystems (2)
lore
Share & tools
lore

Li Wang

author
#0 lore raw

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.

---
 fs/fuse/inode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/fuse/inode.c +1 -1
index 0897f8e62b4d..c3689f4f7beb 100644
@@ -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
maintainer
#1 lore raw
Quoted 6 lines · Li Wang

The local max_background variable was declared with a duplicated assignment (max_background = max_background = arg->max_background). Remove the redundant assignment.

Folded into original patch in for-next.

Thanks,
Miklos