From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933204AbcITQRo (ORCPT ); Tue, 20 Sep 2016 12:17:44 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:19383 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932320AbcITQRn (ORCPT ); Tue, 20 Sep 2016 12:17:43 -0400 From: Eric Engestrom To: CC: Eric Engestrom , Greg Kroah-Hartman Subject: [PATCH] debugfs: remove unused variable Date: Tue, 20 Sep 2016 17:17:15 +0100 Message-ID: <20160920161715.16924-1-eric.engestrom@imgtec.com> X-Mailer: git-send-email 2.10.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.60.4.28] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Eric Engestrom --- fs/debugfs/file.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/debugfs/file.c b/fs/debugfs/file.c index 592059f..04eca0b 100644 --- a/fs/debugfs/file.c +++ b/fs/debugfs/file.c @@ -195,7 +195,6 @@ static int full_proxy_release(struct inode *inode, struct file *filp) const struct dentry *dentry = F_DENTRY(filp); const struct file_operations *real_fops = REAL_FOPS_DEREF(dentry); const struct file_operations *proxy_fops = filp->f_op; - int r = 0; /* * We must not protect this against removal races here: the @@ -204,7 +203,7 @@ static int full_proxy_release(struct inode *inode, struct file *filp) * ->i_private is still being meaningful here. */ if (real_fops->release) - r = real_fops->release(inode, filp); + real_fops->release(inode, filp); replace_fops(filp, d_inode(dentry)->i_fop); kfree((void *)proxy_fops); -- Cheers, Eric