All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] debugfs: remove unused variable
@ 2016-09-20 16:17 Eric Engestrom
  2016-09-21  8:01 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 8+ messages in thread
From: Eric Engestrom @ 2016-09-20 16:17 UTC (permalink / raw)
  To: linux-kernel; +Cc: Eric Engestrom, Greg Kroah-Hartman

Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
---
 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

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-09-21  9:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-20 16:17 [PATCH] debugfs: remove unused variable Eric Engestrom
2016-09-21  8:01 ` Greg Kroah-Hartman
2016-09-21  8:36   ` [PATCH] debugfs: propagate release() call result Eric Engestrom
2016-09-21  9:15     ` Greg Kroah-Hartman
2016-09-21  9:27       ` [PATCH v2] " Eric Engestrom
2016-09-21  8:39   ` [PATCH] debugfs: remove unused variable Eric Engestrom
2016-09-21  8:50   ` Nicolai Stange
2016-09-21  9:23     ` Eric Engestrom

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.