From patchwork Mon Oct 21 18:53:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Geyslan G. Bem" X-Patchwork-Id: 3079341 Return-Path: X-Original-To: patchwork-v9fs-devel@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 B5D82BF924 for ; Mon, 21 Oct 2013 18:58:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2DCD5203A8 for ; Mon, 21 Oct 2013 18:58:47 +0000 (UTC) Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 000B420377 for ; Mon, 21 Oct 2013 18:58:45 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=sfs-ml-3.v29.ch3.sourceforge.com) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1VYKgd-0004ZT-CG; Mon, 21 Oct 2013 18:58:43 +0000 Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1VYKgb-0004ZG-Nr for v9fs-developer@lists.sourceforge.net; Mon, 21 Oct 2013 18:58:41 +0000 Received-SPF: pass (sog-mx-3.v43.ch3.sourceforge.com: domain of gmail.com designates 209.85.213.43 as permitted sender) client-ip=209.85.213.43; envelope-from=geyslan@gmail.com; helo=mail-yh0-f43.google.com; Received: from mail-yh0-f43.google.com ([209.85.213.43]) by sog-mx-3.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1VYKgb-0007kX-3L for v9fs-developer@lists.sourceforge.net; Mon, 21 Oct 2013 18:58:41 +0000 Received: by mail-yh0-f43.google.com with SMTP id v1so1879156yhn.30 for ; Mon, 21 Oct 2013 11:58:35 -0700 (PDT) X-Received: by 10.236.14.202 with SMTP id d50mr12756605yhd.47.1382381915702; Mon, 21 Oct 2013 11:58:35 -0700 (PDT) Received: from localhost.localdomain (189-48-116-98.user.veloxzone.com.br. [189.48.116.98]) by mx.google.com with ESMTPSA id s20sm29083842yhi.0.2013.10.21.11.58.27 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Oct 2013 11:58:35 -0700 (PDT) From: "Geyslan G. Bem" To: kernel-br@googlegroups.com Date: Mon, 21 Oct 2013 15:53:45 -0300 Message-Id: <1382381625-16974-1-git-send-email-geyslan@gmail.com> X-Mailer: git-send-email 1.8.4 X-Spam-Score: -1.6 (-) X-Headers-End: 1VYKgb-0007kX-3L Cc: Latchesar Ionkov , "Geyslan G. Bem" , Eric Van Hensbergen , open list , "open list:9P FILE SYSTEM" , Ron Minnich Subject: [V9fs-developer] [PATCH] 9p: remove useless 'name' variable and assignment X-BeenThere: v9fs-developer@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: v9fs-developer-bounces@lists.sourceforge.net X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=unavailable 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 There is no use of 'name' pointer. Get rid of its useless assignment. Signed-off-by: Geyslan G. Bem --- fs/9p/vfs_inode_dotl.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/9p/vfs_inode_dotl.c b/fs/9p/vfs_inode_dotl.c index a7c4814..2cd9042 100644 --- a/fs/9p/vfs_inode_dotl.c +++ b/fs/9p/vfs_inode_dotl.c @@ -772,7 +772,6 @@ v9fs_vfs_link_dotl(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry) { int err; - char *name; struct dentry *dir_dentry; struct p9_fid *dfid, *oldfid; struct v9fs_session_info *v9ses; @@ -790,8 +789,6 @@ v9fs_vfs_link_dotl(struct dentry *old_dentry, struct inode *dir, if (IS_ERR(oldfid)) return PTR_ERR(oldfid); - name = (char *) dentry->d_name.name; - err = p9_client_link(dfid, oldfid, (char *)dentry->d_name.name); if (err < 0) {