From patchwork Thu Jun 26 18:39:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: HIMANGI SARAOGI X-Patchwork-Id: 4429991 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1CBBEBEEAA for ; Thu, 26 Jun 2014 18:39:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 59587201F4 for ; Thu, 26 Jun 2014 18:39:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 72F21201DD for ; Thu, 26 Jun 2014 18:39:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750944AbaFZSjR (ORCPT ); Thu, 26 Jun 2014 14:39:17 -0400 Received: from mail-pb0-f51.google.com ([209.85.160.51]:55671 "EHLO mail-pb0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750844AbaFZSjR (ORCPT ); Thu, 26 Jun 2014 14:39:17 -0400 Received: by mail-pb0-f51.google.com with SMTP id rp16so3517096pbb.10 for ; Thu, 26 Jun 2014 11:39:16 -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=W30iv9wx+Mo+9b/9np9W2CeliIfF8H+9h3OHtNMhUM4=; b=rE5hekAJ8QW0SxKBd5bpyUm9w8Hum7kN3BmUZnd9f97wiApsIoTVQa7wpyKETE+DBv 5+82vIvEUNMYWYyTKWqnCHuXI+xPi3Sjx1fXCvK2QAG6nn8hnx4ydFth+4mUsjpzTEcK lbZO/mVfYo1wxOZnawN1GW1zdywlkeYRqdEEcjhkK1wpIH+81XlWDF8Vca0fEB/7LM+U phArlFmMVOFiB9xtfntn3q0hsJO8AQqTe9igygGaTb9NUPfh1GAoL+ob1GTm5fcoWk3e Yfxm2tGERSfV436hWYxShnXF1Mu3T51W7EwGMKPPytqN6hT3xsZLKRf1N9hbBtlO3LVD TCsg== X-Received: by 10.68.224.198 with SMTP id re6mr24035360pbc.8.1403807956117; Thu, 26 Jun 2014 11:39:16 -0700 (PDT) Received: from localhost ([122.178.71.53]) by mx.google.com with ESMTPSA id ja8sm11185590pbd.3.2014.06.26.11.39.12 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 26 Jun 2014 11:39:15 -0700 (PDT) Date: Fri, 27 Jun 2014 00:09:09 +0530 From: Himangi Saraogi To: Trond Myklebust , linux-nfs@vger.kernel.org, linux-kernel@vger.kernel Cc: julia.lawall@lip6.fr Subject: [PATCH] NFSv4: Drop cast Message-ID: <20140626183908.GA4242@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, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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 This patch does away with the cast on void * as it is unnecessary. The following Coccinelle semantic patch was used for making the change: @r@ expression x; void* e; type T; identifier f; @@ ( *((T *)e) | ((T *)x)[...] | ((T *)x)->f | - (T *) e ) Signed-off-by: Himangi Saraogi --- fs/nfs/nfs4xdr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c index 939ae60..e13b59d 100644 --- a/fs/nfs/nfs4xdr.c +++ b/fs/nfs/nfs4xdr.c @@ -7092,7 +7092,7 @@ static int nfs4_xdr_dec_reclaim_complete(struct rpc_rqst *rqstp, if (!status) status = decode_sequence(xdr, &res->seq_res, rqstp); if (!status) - status = decode_reclaim_complete(xdr, (void *)NULL); + status = decode_reclaim_complete(xdr, NULL); return status; }