From patchwork Wed Jul 23 14:42:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: HIMANGI SARAOGI X-Patchwork-Id: 4611271 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 21D059F295 for ; Wed, 23 Jul 2014 14:42:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A21892017D for ; Wed, 23 Jul 2014 14:42:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EBFFF20170 for ; Wed, 23 Jul 2014 14:42:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756190AbaGWOml (ORCPT ); Wed, 23 Jul 2014 10:42:41 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:33489 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756913AbaGWOml (ORCPT ); Wed, 23 Jul 2014 10:42:41 -0400 Received: by mail-pa0-f51.google.com with SMTP id ey11so1841196pad.24 for ; Wed, 23 Jul 2014 07:42:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=i52e8GJIztJahblbKJXdWiUuRJLJGqb64/9hMZuha0o=; b=SDQnwDh8YfWZiucjg9ab16su7XSLrJCa16pf/OzeEhQ+UVC+YON+a5rU9j9gU19JwF nkWkrsmegt4ucsMvkJn8qAeP4ZjHxRjqtamsC/BDCR3hr9E4WQb57w7bs6KPOd3ST/wn NkJ3YNfigCTd/fz+RJkyYoFBrexjKidlloPJEtsO2GIDNASwYTtLsklf+ehgq51CSMlb cGzHevNGdiAjh4RQNAjvgF2vSO3YniWM6BqAP//Gr4JPEN3odIPiZkdu+mVbWR0Te31y OIN1VWGlMlCiAML35AiQsmAXbK0gvbVC33MkussS+JK7K4e3jaGX3ahJ1eh0YsSw5UiZ Rsvw== X-Received: by 10.69.20.97 with SMTP id hb1mr2332737pbd.150.1406126560617; Wed, 23 Jul 2014 07:42:40 -0700 (PDT) Received: from localhost ([122.164.52.8]) by mx.google.com with ESMTPSA id qf10sm2605328pbc.23.2014.07.23.07.42.36 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 23 Jul 2014 07:42:39 -0700 (PDT) Date: Wed, 23 Jul 2014 20:12:31 +0530 From: Himangi Saraogi To: "J. Bruce Fields" , linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org Cc: julia.lawall@lip6.fr Subject: [PATCH] infsd4: convert comma to semicolon Message-ID: <20140723144231.GA3229@himangi-Dell> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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: // @r@ expression e1,e2; @@ e1 -, +; e2; // Signed-off-by: Himangi Saraogi Acked-by: Julia Lawall --- fs/nfsd/nfs4callback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c index 564d723..c393d6c 100644 --- a/fs/nfsd/nfs4callback.c +++ b/fs/nfsd/nfs4callback.c @@ -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;