nfsd4: convert comma to semicolon
authorHimangi Saraogi <himangi774@gmail.com>
Wed, 23 Jul 2014 14:42:31 +0000 (20:12 +0530)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 23 Jul 2014 18:20:49 +0000 (14:20 -0400)
Replace a comma between expression statements by a semicolon. This changes
the semantics of the code, but given the current indentation appears to be
what is intended.

A simplified version of the Coccinelle semantic patch that performs this
transformation is as follows:
// <smpl>
@r@
expression e1,e2;
@@

 e1
-,
+;
 e2;
// </smpl>

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4callback.c

index 564d72304613bc23f2730eb323a699fdfcbdab11..c393d6ca3fce838d9a9e47e3b7fbc3e299f81bb5 100644 (file)
@@ -678,7 +678,7 @@ static int setup_callback_client(struct nfs4_client *clp, struct nfs4_cb_conn *c
                                (clp->cl_cred.cr_flavor >= RPC_AUTH_GSS_KRB5))
                        return -EINVAL;
                args.client_name = clp->cl_cred.cr_principal;
-               args.prognumber = conn->cb_prog,
+               args.prognumber = conn->cb_prog;
                args.protocol = XPRT_TRANSPORT_TCP;
                args.authflavor = clp->cl_cred.cr_flavor;
                clp->cl_cb_ident = conn->cb_ident;