Skip to contentSkip to conversation

nfs: nfs4proc: Convert comma to semicolon

PATCH In review Chen Ni 2 participants 2 messages Feb 3

Subsystems (2)
lore
Share & tools
lore

Chen Ni

author
#0 lore raw

PATCH 1/1 nfs: nfs4proc: Convert comma to semicolon

Replace comma between expressions with semicolons.

Using a ',' in place of a ';' can have unintended side effects. Although that is not the case here, it is seems best to use ';' unless ',' is intended.

Found by inspection.
No functional change intended.
Compile tested only.

---
 fs/nfs/nfs4proc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/nfs/nfs4proc.c +1 -1
index 7c9cf0983366..dacd330fc623 100644
@@ -5016,7 +5016,7 @@ static void nfs4_proc_rename_setup(struct rpc_message *msg,
 	if (same_parent)
 		nfs_request_directory_delegation(same_parent);
 	msg->rpc_proc = &nfs4_procedures[NFSPROC4_CLNT_RENAME];
-	res->server = server,
+	res->server = server;
 	nfs4_init_sequence(server->nfs_client, &arg->seq_args,
 			   &res->seq_res, 1, 0);
 }
Signature · 1 line
2.25.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 20 lines · Chen Ni

Replace comma between expressions with semicolons.

Using a ',' in place of a ';' can have unintended side effects. Although that is not the case here, it is seems best to use ';' unless ',' is intended.

Found by inspection.
No functional change intended.
Compile tested only.

---
 fs/nfs/nfs4proc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/nfs/nfs4proc.c +0 -0
index 7c9cf0983366..dacd330fc623 100644

fs/nfs/nfs4proc.c static void nfs4_proc_rename_setup(struct rpc_message *msg, · line 5022

Quoted 8 lines
fs/nfs/nfs4proc.c +1 -1
@@ -5016,7 +5016,7 @@ static void nfs4_proc_rename_setup(struct rpc_message *msg,
 	if (same_parent)
 		nfs_request_directory_delegation(same_parent);
 	msg->rpc_proc = &nfs4_procedures[NFSPROC4_CLNT_RENAME];
-	res->server = server,
+	res->server = server;
 	nfs4_init_sequence(server->nfs_client, &arg->seq_args,
 			   &res->seq_res, 1, 0);
 }

Almost certainly a typo.